lowercase
This commit is contained in:
parent
749c033a68
commit
b99cb44b7a
@ -5,17 +5,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
ARGS=("$@")
|
args=("$@")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
self_update() {
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||||
SCRIPTNAME="$0"
|
SCRIPTNAME="$0"
|
||||||
BRANCH="beta"
|
BRANCH="beta"
|
||||||
|
|
||||||
self_update() {
|
|
||||||
|
|
||||||
cd $SCRIPTPATH
|
cd $SCRIPTPATH
|
||||||
git fetch
|
git fetch
|
||||||
|
|
||||||
@ -26,12 +22,12 @@ git fetch
|
|||||||
git pull --force
|
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[@]}"
|
||||||
do
|
do
|
||||||
[[ "$i" == "--self-update" ]] && unset "ARGS[$count]" && break
|
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
exec bash "$SCRIPTNAME" "${ARGS[@]}"
|
exec bash "$SCRIPTNAME" "${args[@]}"
|
||||||
|
|
||||||
# Now exit this old instance
|
# Now exit this old instance
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user