Skip to content

Commit

Permalink
Moved grep outside if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Jan 26, 2024
1 parent 2276c40 commit a6f9a70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a6f9a70

Please sign in to comment.