Skip to content

Commit 589ba78

Browse files
committed
Update and fix installer
Update and fix installer Signed-off-by: Bensuperpc <[email protected]>
1 parent b6a3b8d commit 589ba78

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

install.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ echo "copy done"
5454

5555
echo "Install ben's scripts..."
5656
echo "create symlink..."
57-
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 "*/others-dist/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" ! -path "*/shell-scripts/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
57+
find /usr/bin/ben_script -type f \( -name "*.sh" -o -name "*.py" \) ! -path "*./git/*" \
58+
! -path "*/install.sh" ! -path "*/uninstall.sh" ! -path "*/Bash-Snippet/*" \
59+
! -path "*/git-scripts/*" ! -path "*/git-extras/*" ! -path "*/git-extra-commands/*" \
60+
! -path "*/cryptr/*" ! -path "*/others-dist/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" \
61+
! -path "*/shell-scripts/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
5862
echo "create symlink done"
5963
echo "Install ben's scripts done"
6064

@@ -79,27 +83,32 @@ sudo make install
7983
echo "Install fff done"
8084

8185
echo "Install git-scripts..."
82-
find /usr/bin/ben_script/git-scripts -type f -name "git-*" ! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
86+
find /usr/bin/ben_script/git-scripts -type f -name "git-*" \
87+
! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
8388
echo "Install git-scripts done"
8489

8590
echo "Install git-extra-commands..."
86-
find /usr/bin/ben_script/git-extra-commands/bin -type f -name "*" ! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
91+
find /usr/bin/ben_script/git-extra-commands/bin -type f -name "*" \
92+
! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
8793
echo "Install git-extra-commands done"
8894

8995
echo "Install cryptr..."
9096
ln -s /usr/bin/ben_script/cryptr/cryptr.bash /usr/bin/cryptr
9197
echo "Install cryptr done"
9298

9399
echo "Install others-dist..."
94-
find /usr/bin/ben_script/others-dist/Scripts -type f -name "*.sh" ! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
100+
find /usr/bin/ben_script/others-dist/Scripts -type f -name "*.sh" \
101+
! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
95102
echo "Install others-dist done"
96103

97104
echo "Install shell-scripts..."
98-
find /usr/bin/ben_script/shell-scripts/Scripts -type f -name "*.sh" ! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
105+
find /usr/bin/ben_script/shell-scripts -type f -name "*.sh" \
106+
! -path "*./git/*" -print0 | xargs -0 -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
99107
echo "Install shell-scripts done"
100108

101109
echo "Install bash-scripts..."
102-
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
110+
find /usr/bin/ben_script/bash-scripts -type f -name "*.sh" \
111+
! -path "*./git/*" -print0 | xargs -P$(nproc) -0 -I{} sudo ln -s {} /usr/bin || true
103112
echo "Install bash-scripts done"
104113

105114
echo "Remove *.sh ..."

utils

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/qdm12/btrfs-recover-scripts.git

0 commit comments

Comments
 (0)