non array

This commit is contained in:
Heavybullets8 2022-06-13 15:10:05 -06:00
parent 8030dbf2b5
commit 3bd1013b3d

View File

@ -4,7 +4,7 @@
[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && echo "This script requires an argument, use --help for help" && exit
ARGS=$(echo "$@" | sed -E 's/[[:space:]]?--self-update[[:space:]]?//g')
ARGS=$(echo "$*" | sed -E 's/[[:space:]]?--self-update[[:space:]]?//g')
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
@ -22,7 +22,7 @@ git fetch
git checkout $BRANCH
git pull --force
echo "Running the new version..."
exec bash "$SCRIPTNAME" ${ARGS[@]}
exec bash "$SCRIPTNAME" "$ARGS"
# Now exit this old instance
exit 1