Double quote array expansions to avoid re-splitting elements. (#5570)

See: https://github.com/koalaman/shellcheck/wiki/SC2068
This commit is contained in:
zSALLAZAR 2023-02-13 13:24:47 +01:00 committed by GitHub
parent 6854830b6e
commit 69155015c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,12 +51,12 @@ if [ "$DO_LOOP" == "yes" ]; then
if [ ${LOOPS} -gt 0 ]; then
echo "Restarted $LOOPS times"
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 ""
sleep 5
((LOOPS++))
done
else
exec "$PHP_BINARY" "$POCKETMINE_FILE" $@
exec "$PHP_BINARY" "$POCKETMINE_FILE" "$@"
fi