mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 06:58:28 +00:00
Merge pull request #333 from klightspeed/1.5-dev#fixcommands
Remove unnecessary shifts from command processing
This commit is contained in:
commit
0da2c5db80
@ -1538,7 +1538,6 @@ while true; do
|
|||||||
start)
|
start)
|
||||||
if [ " ${options[*]} " =~ " --all " ]; then
|
if [ " ${options[*]} " =~ " --all " ]; then
|
||||||
doStartAll
|
doStartAll
|
||||||
shift
|
|
||||||
else
|
else
|
||||||
doStart
|
doStart
|
||||||
fi
|
fi
|
||||||
@ -1546,7 +1545,6 @@ while true; do
|
|||||||
stop)
|
stop)
|
||||||
if [ " ${options[*]} " =~ " --all " ]; then
|
if [ " ${options[*]} " =~ " --all " ]; then
|
||||||
doStopAll
|
doStopAll
|
||||||
shift
|
|
||||||
else
|
else
|
||||||
doStop stop "${options[@]}"
|
doStop stop "${options[@]}"
|
||||||
fi
|
fi
|
||||||
@ -1561,7 +1559,6 @@ while true; do
|
|||||||
sleep 1
|
sleep 1
|
||||||
if [ " ${options[*]} " =~ " --all " ]; then
|
if [ " ${options[*]} " =~ " --all " ]; then
|
||||||
doStartAll
|
doStartAll
|
||||||
shift
|
|
||||||
else
|
else
|
||||||
doStart
|
doStart
|
||||||
fi
|
fi
|
||||||
@ -1579,21 +1576,18 @@ while true; do
|
|||||||
;;
|
;;
|
||||||
installmod)
|
installmod)
|
||||||
doInstallMod "${args[@]}"
|
doInstallMod "${args[@]}"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
backup)
|
backup)
|
||||||
doBackup
|
doBackup
|
||||||
;;
|
;;
|
||||||
broadcast)
|
broadcast)
|
||||||
doBroadcast "${args[@]}"
|
doBroadcast "${args[@]}"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
saveworld)
|
saveworld)
|
||||||
doSaveWorld
|
doSaveWorld
|
||||||
;;
|
;;
|
||||||
rconcmd)
|
rconcmd)
|
||||||
rconcmd "${args[@]}"
|
rconcmd "${args[@]}"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
printStatus
|
printStatus
|
||||||
@ -1606,7 +1600,6 @@ while true; do
|
|||||||
;;
|
;;
|
||||||
useconfig)
|
useconfig)
|
||||||
useConfig "${args[0]}"
|
useConfig "${args[0]}"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
echo "Version: ${arkstVersion}"
|
echo "Version: ${arkstVersion}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user