diff --git a/scripts/start.sh b/scripts/start.sh index feb9bc4df..c70332698 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -46,8 +46,9 @@ cd /palworld || exit printf "\e[0;32m*****CHECKING FOR EXISTING CONFIG*****\e[0m\n" -# This will always overwrite -if [ ! "$(grep -sq '[^[:space:]]' /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini)" ]; then +# Check if PalWorldSettings.ini exists and it not blank +grep -s '[^[:space:]]' /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini +if [ ! $? ]; then printf "\e[0;32m*****GENERATING CONFIG*****\e[0m\n"