diff --git a/.gitmodules b/.gitmodules index 60bc6ff..68c910c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -37,3 +37,6 @@ [submodule "internet/spoofpoint"] path = internet/spoofpoint url = https://github.com/grahamhelton/spoofpoint.git +[submodule "file/adb-sync"] + path = file/adb-sync + url = https://github.com/google/adb-sync.git diff --git a/Makefile b/Makefile index 6bac8e3..f395a32 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ #// // #// Script, 2021 // #// Created: 17, June, 2021 // -#// Modified: 29, July, 2021 // +#// Modified: 31, August, 2021 // #// file: - // #// - // #// Source: https://github.com/metal3d/bashsimplecurses // @@ -20,7 +20,7 @@ #////////////////////////////////////////////////////////////// PROJECT_NAME := scripts SHELL := bash -VERSION := 1.3.9 +VERSION := 1.3.10 RM := rm all: install diff --git a/file/adb-sync b/file/adb-sync new file mode 160000 index 0000000..fb7c549 --- /dev/null +++ b/file/adb-sync @@ -0,0 +1 @@ +Subproject commit fb7c549753de7a5579ed3400dd9f8ac71f7bf1b1 diff --git a/install.sh b/install.sh index ec999bf..369036b 100755 --- a/install.sh +++ b/install.sh @@ -56,7 +56,7 @@ echo "create symlink..." find /usr/bin/ben_script -type f \( -name "*.sh" -o -name "*.py" \) ! -path "*./git/*" \ ! -path "*/install.sh" ! -path "*/uninstall.sh" ! -path "*/Bash-Snippet/*" \ ! -path "*/git-scripts/*" ! -path "*/git-extras/*" ! -path "*/git-extra-commands/*" \ - ! -path "*/cryptr/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" \ + ! -path "*/cryptr/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" ! -path "*/adb-sync/*" \ ! -path "*/shell-scripts/*" -print0 | xargs -0 -P"$(nproc)" -I{} sudo ln -s "{}" /usr/bin || true echo "create symlink done" echo "Install ben's scripts done" @@ -109,6 +109,10 @@ find /usr/bin/ben_script/bash-scripts -type f -name "*.sh" \ ! -path "*./git/*" -print0 | xargs -P"$(nproc)" -0 -I{} sudo ln -s "{}" /usr/bin || true echo "Install bash-scripts done" +echo "Install adb-sync.." +ln -s /usr/bin/ben_script/file/adb-sync /usr/bin/adb-sync +echo "Install adb-sync done" + echo "Remove *.sh ..." # Move it by remove file extension (if does not exit) find /usr/bin -lname '/usr/bin/ben_script/*.sh' | while read -r NAME ; do sudo mv -nv "${NAME}" "${NAME%.sh}" || echo "Fail: ${NAME}" ; done diff --git a/uninstall.sh b/uninstall.sh index f084b60..80b7c1d 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -67,7 +67,7 @@ cd /usr/bin/ben_script/fff || { echo "Failure"; exit 1; } sudo make uninstall echo "Removing fff done" -echo "Removing ben's scripts, git-scripts, git-extra-commands, cryptr, bash-scripts, shell-scripts, docker-scripts, gpg-encrypt, spoofpoint..." +echo "Removing ben's scripts, git-scripts, git-extra-commands, cryptr, bash-scripts, shell-scripts, docker-scripts, gpg-encrypt, spoofpoint, adb-sync..." echo "Remove symlink..." sudo find /usr/bin -lname '/usr/bin/ben_script/*' -delete echo "Remove symlink done"