mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Double quote array expansions to avoid re-splitting elements. (#5570)
See: https://github.com/koalaman/shellcheck/wiki/SC2068
This commit is contained in:
parent
6854830b6e
commit
69155015c9
4
start.sh
4
start.sh
@ -51,12 +51,12 @@ if [ "$DO_LOOP" == "yes" ]; then
|
|||||||
if [ ${LOOPS} -gt 0 ]; then
|
if [ ${LOOPS} -gt 0 ]; then
|
||||||
echo "Restarted $LOOPS times"
|
echo "Restarted $LOOPS times"
|
||||||
fi
|
fi
|
||||||
"$PHP_BINARY" "$POCKETMINE_FILE" $@
|
"$PHP_BINARY" "$POCKETMINE_FILE" "$@"
|
||||||
echo "To escape the loop, press CTRL+C now. Otherwise, wait 5 seconds for the server to restart."
|
echo "To escape the loop, press CTRL+C now. Otherwise, wait 5 seconds for the server to restart."
|
||||||
echo ""
|
echo ""
|
||||||
sleep 5
|
sleep 5
|
||||||
((LOOPS++))
|
((LOOPS++))
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
exec "$PHP_BINARY" "$POCKETMINE_FILE" $@
|
exec "$PHP_BINARY" "$POCKETMINE_FILE" "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user