@@ -54,8 +54,8 @@ echo "copy done"
5454
5555echo " Install ben's scripts..."
5656echo " create symlink..."
57- find /usr/bin/ben_script -type f -name " *.sh" ! -path " *./git/*" ! -path " */install.sh" ! -path " */uninstall.sh" ! -path " */Bash-Snippet/*" ! -path " */git-scripts/*" ! -path " */git-extras/*" ! -path " */git-extra-commands/*" ! -path " */cryptr/*" ! -path " */others-dist/*" -exec sudo ln -s {} /usr/bin \;
58- find /usr/bin/ben_script -type f -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 " */others-dist/*" -exec sudo ln -s {} /usr/bin \;
57+ find /usr/bin/ben_script -type f -name " *.sh" ! -path " *./git/*" ! -path " */install.sh" ! -path " */uninstall.sh" ! -path " */Bash-Snippet/*" ! -path " */git-scripts/*" ! -path " */git-extras/*" ! -path " */git-extra-commands/*" ! -path " */cryptr/*" ! -path " */others-dist/*" | xargs -P $( nproc ) -I{} sudo ln -s {} /usr/bin || true
58+ find /usr/bin/ben_script -type f -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 " */others-dist/*" | xargs -P $( nproc ) -I{} sudo ln -s {} /usr/bin || true
5959echo " create symlink done"
6060echo " Install ben's scripts done"
6161
@@ -70,19 +70,19 @@ sudo ./install.sh
7070echo " Install git-extras done"
7171
7272echo " Install git-scripts..."
73- find /usr/bin/ben_script/git-scripts -type f -name " git-*" ! -path " *./git/*" -exec sudo ln -s {} /usr/bin \;
73+ find /usr/bin/ben_script/git-scripts -type f -name " git-*" ! -path " *./git/*" | xargs -P $( nproc ) -I{} sudo ln -s {} /usr/bin || true
7474echo " Install git-scripts done"
7575
7676echo " Install git-extra-commands..."
77- find /usr/bin/ben_script/git-extra-commands/bin -type f -name " *" ! -path " *./git/*" -exec sudo ln -s {} /usr/bin \;
77+ find /usr/bin/ben_script/git-extra-commands/bin -type f -name " *" ! -path " *./git/*" | xargs -P $( nproc ) -I{} sudo ln -s {} /usr/bin || true
7878echo " Install git-extra-commands done"
7979
8080echo " Install cryptr..."
8181ln -s /usr/bin/ben_script/cryptr/cryptr.bash /usr/bin/cryptr
8282echo " Install cryptr done"
8383
8484echo " Install others-dist..."
85- find /usr/bin/ben_script/others-dist/Scripts -type f -name " *.sh" ! -path " *./git/*" -exec sudo ln -s {} /usr/bin \;
85+ find /usr/bin/ben_script/others-dist/Scripts -type f -name " *.sh" ! -path " *./git/*" | xargs -P $( nproc ) -I{} sudo ln -s {} /usr/bin || true
8686echo " Install others-dist done"
8787
8888echo " Remove *.sh ..."
0 commit comments