mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Moved grep outside if condition
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user