delete branch

This commit is contained in:
Heavybullets8 2022-06-13 15:45:22 -06:00
parent 01fc4f6c91
commit 6658586651

View File

@ -11,15 +11,12 @@ self_update() {
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
SCRIPTNAME="$0"
BRANCH="beta"
cd $SCRIPTPATH
git fetch
[[ -n $(git diff --name-only origin/$BRANCH | grep $SCRIPTNAME) ]] && {
echo "Found a new version of me, updating myself..."
git pull --force
git checkout $BRANCH
git pull --force
echo "Running the new version..."
count=0
for i in "${args[@]}"