mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-31 14:57:59 +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"
|
printf "\e[0;32m*****CHECKING FOR EXISTING CONFIG*****\e[0m\n"
|
||||||
|
|
||||||
# This will always overwrite
|
# Check if PalWorldSettings.ini exists and it not blank
|
||||||
if [ ! "$(grep -sq '[^[:space:]]' /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini)" ]; then
|
grep -s '[^[:space:]]' /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
|
||||||
|
if [ ! $? ]; then
|
||||||
|
|
||||||
printf "\e[0;32m*****GENERATING CONFIG*****\e[0m\n"
|
printf "\e[0;32m*****GENERATING CONFIG*****\e[0m\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user