.

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
pull/5/head
Bensuperpc 1 year ago
parent 3f4610829a
commit 5becbbad6b
  1. 3
      .gitmodules
  2. 4
      Makefile
  3. 1
      file/adb-sync
  4. 6
      install.sh
  5. 2
      uninstall.sh

3
.gitmodules vendored

@ -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

@ -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

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

@ -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

@ -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"

Loading…
Cancel
Save