delete branch
This commit is contained in:
parent
01fc4f6c91
commit
6658586651
@ -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[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user