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