Add shell-scripts and update installer

Add shell-scripts and update installer

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
pull/4/head
Bensuperpc 2 years ago
parent a325c503e9
commit b6a3b8dd76

3
.gitmodules vendored

@ -31,3 +31,6 @@
[submodule "fff"]
path = fff
url = https://github.com/dylanaraps/fff.git
[submodule "shell-scripts"]
path = shell-scripts
url = https://github.com/Josef-Friedrich/shell-scripts.git

@ -54,8 +54,7 @@ echo "copy done"
echo "Install ben's scripts..."
echo "create symlink..."
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/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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/*" ! -path "*/bash-scripts/*" ! -path "*/fff/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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
echo "create symlink done"
echo "Install ben's scripts done"
@ -80,11 +79,11 @@ sudo make install
echo "Install fff done"
echo "Install git-scripts..."
find /usr/bin/ben_script/git-scripts -type f -name "git-*" ! -path "*./git/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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
echo "Install git-scripts done"
echo "Install git-extra-commands..."
find /usr/bin/ben_script/git-extra-commands/bin -type f -name "*" ! -path "*./git/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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
echo "Install git-extra-commands done"
echo "Install cryptr..."
@ -92,11 +91,15 @@ ln -s /usr/bin/ben_script/cryptr/cryptr.bash /usr/bin/cryptr
echo "Install cryptr done"
echo "Install others-dist..."
find /usr/bin/ben_script/others-dist/Scripts -type f -name "*.sh" ! -path "*./git/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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
echo "Install others-dist done"
echo "Install shell-scripts..."
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
echo "Install shell-scripts done"
echo "Install bash-scripts..."
find /usr/bin/ben_script/bash-scripts -type f -name "*.sh" ! -path "*./git/*" | xargs -P$(nproc) -I{} sudo ln -s {} /usr/bin || true
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 "Remove *.sh ..."

@ -0,0 +1,23 @@
#!/bin/bash
set -euo pipefail
#//////////////////////////////////////////////////////////////
#// ____ //
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
#// |_| |_| //
#//////////////////////////////////////////////////////////////
#// //
#// Script, 2021 //
#// Created: 24, July, 2021 //
#// Modified: 24, July, 2021 //
#// file: - //
#// - //
#// Source: - //
#// OS: ALL //
#// CPU: ALL //
#// //
#//////////////////////////////////////////////////////////////
history | sed -e 's/ *[0-9][0-9]* *//' | sort | uniq -c | sort -rn | head -25

@ -0,0 +1 @@
Subproject commit ff0d3eb1c3eea53a7c33d5ca1d522752b8814b6a

@ -68,7 +68,7 @@ cd /usr/bin/ben_script/fff
sudo make uninstall
echo "Removing fff done"
echo "Removing ben's scripts, git-scripts, git-extra-commands, cryptr, bash-scripts..."
echo "Removing ben's scripts, git-scripts, git-extra-commands, cryptr, bash-scripts, shell-scripts..."
echo "Remove symlink..."
sudo find /usr/bin -lname '/usr/bin/ben_script/*' -delete
echo "Remove symlink done"

Loading…
Cancel
Save