This commit is contained in:
Heavybullets8 2022-06-13 14:51:40 -06:00
parent 8e2d77323e
commit 8c0cb93fe0

View File

@ -5,7 +5,7 @@
ARGS=( "$@" )
ARGS=( "$@" )
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
SCRIPTNAME="$0"
@ -22,7 +22,7 @@ git fetch
git checkout $BRANCH
git pull --force
echo "Running the new version..."
exec bash "$SCRIPTNAME" "${ARGS[@]/(\ )\-\-self\-update(\ )}"
exec bash "$SCRIPTNAME" "${ARGS[@]/\s?\-\-self\-update\s?}"
# Now exit this old instance
exit 1