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