Skip to content

Commit

Permalink
Ignore case for if statement
Browse files Browse the repository at this point in the history
Co-authored-by: llnut <[email protected]>
  • Loading branch information
pipixi and llnut authored Jan 31, 2024
1 parent 2c3bd76 commit e23f3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ if [ -n "${BAN_LIST_URL}" ]; then
fi
if [ -n "${RCON_ENABLED}" ]; then
echo "RCON_ENABLED=${RCON_ENABLED}"
if [ "${RCON_ENABLED}" = true ]; then
if [ "${RCON_ENABLED,,}" = true ]; then
sed -i "s/RCONEnabled=[a-zA-Z]*/RCONEnabled=True/" /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
else
sed -i "s/RCONEnabled=[a-zA-Z]*/RCONEnabled=False/" /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
Expand Down

0 comments on commit e23f3d2

Please sign in to comment.