From d65c3434420d7f3b59626e6e070213b3e6bf433d Mon Sep 17 00:00:00 2001 From: Kevin Brewer <[kevin@splicecloud.com]> Date: Fri, 10 Jan 2025 11:29:23 -0500 Subject: [PATCH] zeroing out the files --- launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch.sh b/launch.sh index c0dd603..2906311 100644 --- a/launch.sh +++ b/launch.sh @@ -50,7 +50,7 @@ fi if [[ -n "$ONLINE_MODE" ]]; then sed -i "s/online-mode=.*/online-mode=$ONLINE_MODE/" /data/server.properties fi -[[ ! -f whitelist.json ]] && echo "[]" > whitelist.json +echo "[]" > whitelist.json IFS=',' read -ra USERS <<< "$WHITELIST_USERS" for raw_username in "${USERS[@]}"; do username=$(echo "$raw_username" | xargs) @@ -72,7 +72,7 @@ for raw_username in "${USERS[@]}"; do echo "Whitelist: Failed to fetch UUID for $username." fi done -[[ ! -f ops.json ]] && echo "[]" > ops.json +echo "[]" > ops.json IFS=',' read -ra OPS <<< "$OP_USERS" for raw_username in "${OPS[@]}"; do username=$(echo "$raw_username" | xargs)