From a3d6c50a948cf41435c86def3291fe3ab3b2d49e Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:16:27 -0500 Subject: [PATCH 01/22] Moved helper functions to own script --- scripts/helper_functions.sh | 53 +++++++++++++++++++++++++++++++++++++ scripts/start.sh | 51 +---------------------------------- 2 files changed, 54 insertions(+), 50 deletions(-) create mode 100644 scripts/helper_functions.sh diff --git a/scripts/helper_functions.sh b/scripts/helper_functions.sh new file mode 100644 index 000000000..e3f36a8ba --- /dev/null +++ b/scripts/helper_functions.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# This file contains functions which can be used in multiple scripts + +dirExists() { + local path="$1" + local return_val=0 + if ! [ -d "${path}" ]; then + echo "${path} does not exist." + return_val=1 + fi + return "$return_val" +} + +fileExists() { + local path="$1" + local return_val=0 + if ! [ -f "${path}" ]; then + echo "${path} does not exist." + return_val=1 + fi + echo "Return code: $return_val" + return "$return_val" +} + +isReadable() { + local path="$1" + local return_val=0 + if ! [ -e "${path}" ]; then + echo "${path} is not readable." + return_val=1 + fi + return "$return_val" +} + +isWritable() { + local path="$1" + local return_val=0 + if ! [ -w "${path}" ]; then + echo "${path} is not writable." + return_val=1 + fi + return "$return_val" +} + +isExecutable() { + local path="$1" + local return_val=0 + if ! [ -x "${path}" ]; then + echo "${path} is not executable." + return_val=1 + fi + return "$return_val" +} diff --git a/scripts/start.sh b/scripts/start.sh index 5b07f5421..894eb3225 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,54 +1,5 @@ #!/bin/bash - -dirExists() { - local path="$1" - local return_val=0 - if ! [ -d "${path}" ]; then - echo "${path} does not exist." - return_val=1 - fi - return "$return_val" -} - -fileExists() { - local path="$1" - local return_val=0 - if ! [ -f "${path}" ]; then - echo "${path} does not exist." - return_val=1 - fi - return "$return_val" -} - -isReadable() { - local path="$1" - local return_val=0 - if ! [ -e "${path}" ]; then - echo "${path} is not readable." - return_val=1 - fi - return "$return_val" -} - -isWritable() { - local path="$1" - local return_val=0 - if ! [ -w "${path}" ]; then - echo "${path} is not writable." - return_val=1 - fi - return "$return_val" -} - -isExecutable() { - local path="$1" - local return_val=0 - if ! [ -x "${path}" ]; then - echo "${path} is not executable." - return_val=1 - fi - return "$return_val" -} +source /home/steam/scripts/helper_functions.sh dirExists "/palworld" || exit isWritable "/palworld" || exit From 6f0e9df1b8a44401dd28b2c9c2c7e04b3009939e Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:20:30 -0500 Subject: [PATCH 02/22] Changed paths to var --- scripts/compile-settings.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 4f402ba3c..35fa166ef 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,5 +1,8 @@ #!/bin/bash +config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" +config_dir=$(dirname "$config_file") + echo "Compiling PalWorldSettings.ini..." export DIFFICULTY=${DIFFICULTY:-None} @@ -134,8 +137,8 @@ BAN_LIST_URL = $BAN_LIST_URL EOF fi -mkdir -p /palworld/Pal/Saved/Config/LinuxServer -cat > /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini < "$config_file" < Date: Thu, 8 Feb 2024 12:26:54 -0500 Subject: [PATCH 03/22] Fixed path for helper script --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 894eb3225..0246ef1b1 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,5 +1,5 @@ #!/bin/bash -source /home/steam/scripts/helper_functions.sh +source /home/steam/server/helper_functions.sh dirExists "/palworld" || exit isWritable "/palworld" || exit From 0bbb09ca88c15dfd9aa8e7348bec22876c3934ae Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:27:22 -0500 Subject: [PATCH 04/22] Added exit on failure to make dir --- scripts/compile-settings.sh | 3 ++- scripts/start.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 35fa166ef..813a94c4b 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -3,6 +3,8 @@ config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") +mkdir -p "$config_dir" || exit + echo "Compiling PalWorldSettings.ini..." export DIFFICULTY=${DIFFICULTY:-None} @@ -137,7 +139,6 @@ BAN_LIST_URL = $BAN_LIST_URL EOF fi -mkdir -p "$config_dir" cat > "$config_file" < Date: Thu, 8 Feb 2024 12:31:24 -0500 Subject: [PATCH 05/22] Removed echo statement added in debug process --- scripts/helper_functions.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/helper_functions.sh b/scripts/helper_functions.sh index e3f36a8ba..eeac429cd 100644 --- a/scripts/helper_functions.sh +++ b/scripts/helper_functions.sh @@ -18,7 +18,6 @@ fileExists() { echo "${path} does not exist." return_val=1 fi - echo "Return code: $return_val" return "$return_val" } From 3e599eb2cdc8efa93cbec7aaffe1da317ef9a27b Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:47:26 -0500 Subject: [PATCH 06/22] Added checking in compile-settings.sh --- scripts/compile-settings.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 813a94c4b..2e3d46729 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,9 +1,22 @@ #!/bin/bash +source /home/steam/server/helper_functions.sh config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") mkdir -p "$config_dir" || exit +# If file exists then check if it is writable +if fileExists "$config_file" > /dev/null; then + if ! isWritable "$config_file"; then + echo "Not writable" + exit 1 + fi +# If file does not exist then check if the directory is writable +elif ! isWritable "$config_dir"; then + # Exiting since the file does not exist and the directory is not writable. + echo "Unable to create $config_file" + exit 1 +fi echo "Compiling PalWorldSettings.ini..." From 759e9d5f2479d4cb44166370d5d949b0c24dda05 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:49:23 -0500 Subject: [PATCH 07/22] Added echo for not writable file --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 2e3d46729..6c1a1456d 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -8,7 +8,7 @@ mkdir -p "$config_dir" || exit # If file exists then check if it is writable if fileExists "$config_file" > /dev/null; then if ! isWritable "$config_file"; then - echo "Not writable" + echo "Unable to create $config_file" exit 1 fi # If file does not exist then check if the directory is writable From e6f5b459a68bc35754c9bafef6f6dbbd105ef5c5 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 12:56:58 -0500 Subject: [PATCH 08/22] Updated test condition --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 6c1a1456d..ad9d561c4 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -6,7 +6,7 @@ config_dir=$(dirname "$config_file") mkdir -p "$config_dir" || exit # If file exists then check if it is writable -if fileExists "$config_file" > /dev/null; then +if [ -f "$config_file" ]; then if ! isWritable "$config_file"; then echo "Unable to create $config_file" exit 1 From 801180dc8d80fb4d5bafb73cec7fad5a851e2827 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:02:58 -0500 Subject: [PATCH 09/22] Added descriptions for functions --- scripts/helper_functions.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/helper_functions.sh b/scripts/helper_functions.sh index eeac429cd..2386a77a6 100644 --- a/scripts/helper_functions.sh +++ b/scripts/helper_functions.sh @@ -1,6 +1,9 @@ #!/bin/bash # This file contains functions which can be used in multiple scripts +# Checks if a given path is a directory +# Returns 0 if the path is a directory +# Returns 1 if the path is not a directory or does not exists and produces an output message dirExists() { local path="$1" local return_val=0 @@ -11,6 +14,9 @@ dirExists() { return "$return_val" } +# Checks if a given path is a regular file +# Returns 0 if the path is a regular file +# Returns 1 if the path is not a regular file or does not exists and produces an output message fileExists() { local path="$1" local return_val=0 @@ -21,6 +27,9 @@ fileExists() { return "$return_val" } +# Checks if a given path exists and is readable +# Returns 0 if the path exists and is readable +# Returns 1 if the path is not readable or does not exists and produces an output message isReadable() { local path="$1" local return_val=0 @@ -31,6 +40,9 @@ isReadable() { return "$return_val" } +# Checks if a given path is writable +# Returns 0 if the path is writable +# Returns 1 if the path is not writable or does not exists and produces an output message isWritable() { local path="$1" local return_val=0 @@ -41,6 +53,9 @@ isWritable() { return "$return_val" } +# Checks if a given path is executable +# Returns 0 if the path is executable +# Returns 1 if the path is not executable or does not exists and produces an output message isExecutable() { local path="$1" local return_val=0 From 45e09d286f303dcc8d2b51b71ebb6856fcea640c Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:27:22 -0500 Subject: [PATCH 10/22] Added source for spell check --- scripts/compile-settings.sh | 1 + scripts/start.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index ad9d561c4..929fbb664 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck source=scripts/helper_functions.sh source /home/steam/server/helper_functions.sh config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" diff --git a/scripts/start.sh b/scripts/start.sh index e41d18cc6..4c833728e 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck source=scripts/helper_functions.sh source /home/steam/server/helper_functions.sh dirExists "/palworld" || exit From f945f3d335d2efe404244202f380447e92a170f7 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:33:10 -0500 Subject: [PATCH 11/22] Added quotes around path --- scripts/compile-settings.sh | 2 +- scripts/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 929fbb664..9e025b551 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source /home/steam/server/helper_functions.sh +source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") diff --git a/scripts/start.sh b/scripts/start.sh index 4c833728e..92ecf6e12 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source /home/steam/server/helper_functions.sh +source "/home/steam/server/helper_functions.sh" dirExists "/palworld" || exit isWritable "/palworld" || exit From 8e37d10365a9432163b3a7ebbcbf9556ab321206 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:35:04 -0500 Subject: [PATCH 12/22] Added path as env --- Dockerfile | 3 ++- scripts/compile-settings.sh | 2 +- scripts/start.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c077f6b88..e06b66c68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,7 +74,8 @@ ENV PORT= \ DISCORD_POST_UPDATE_BOOT_MESSAGE="Server update complete!" \ DISCORD_PRE_START_MESSAGE="Server has been started!" \ DISCORD_PRE_SHUTDOWN_MESSAGE="Server is shutting down..." \ - DISCORD_POST_SHUTDOWN_MESSAGE="Server has been stopped!" + DISCORD_POST_SHUTDOWN_MESSAGE="Server has been stopped!" \ + SERVER_PATH="/home/steam/server" COPY ./scripts /home/steam/server/ diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 9e025b551..5ad28fece 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source "/home/steam/server/helper_functions.sh" +source "${SERVER_PATH}/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") diff --git a/scripts/start.sh b/scripts/start.sh index 92ecf6e12..aeabc3829 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source "/home/steam/server/helper_functions.sh" +source "${SERVER_PATH}/helper_functions.sh" dirExists "/palworld" || exit isWritable "/palworld" || exit From e4535700ab9e7125f6d3900a68db6837f63a1fd3 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:36:02 -0500 Subject: [PATCH 13/22] Changed source to period --- scripts/compile-settings.sh | 2 +- scripts/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 5ad28fece..6af3bb73e 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source "${SERVER_PATH}/helper_functions.sh" +. "${SERVER_PATH}/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") diff --git a/scripts/start.sh b/scripts/start.sh index aeabc3829..2c8ee20ff 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source "${SERVER_PATH}/helper_functions.sh" +. "${SERVER_PATH}/helper_functions.sh" dirExists "/palworld" || exit isWritable "/palworld" || exit From 0bf4fa59bab504f104eeccce76f90bc8e588a932 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:43:09 -0500 Subject: [PATCH 14/22] Changed to ignore path --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 6af3bb73e..08bce58bc 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,5 +1,5 @@ #!/bin/bash -# shellcheck source=scripts/helper_functions.sh +# shellcheck source=/dev/null . "${SERVER_PATH}/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" From 2e6096ec7c162c86fabd4c28a2a952f798cae265 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:44:35 -0500 Subject: [PATCH 15/22] Restore source and no check --- scripts/compile-settings.sh | 2 +- scripts/start.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 08bce58bc..9501af473 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=/dev/null -. "${SERVER_PATH}/helper_functions.sh" +source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") diff --git a/scripts/start.sh b/scripts/start.sh index 2c8ee20ff..0fbcc95e5 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,6 +1,6 @@ #!/bin/bash -# shellcheck source=scripts/helper_functions.sh -. "${SERVER_PATH}/helper_functions.sh" +# shellcheck source=/dev/null +source "/home/steam/server/helper_functions.sh" dirExists "/palworld" || exit isWritable "/palworld" || exit From c2faa1a12e6dd4f9fafcf5a6780b7141a34f2ede Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:44:58 -0500 Subject: [PATCH 16/22] Removed path in dockerfile --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e06b66c68..c077f6b88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,8 +74,7 @@ ENV PORT= \ DISCORD_POST_UPDATE_BOOT_MESSAGE="Server update complete!" \ DISCORD_PRE_START_MESSAGE="Server has been started!" \ DISCORD_PRE_SHUTDOWN_MESSAGE="Server is shutting down..." \ - DISCORD_POST_SHUTDOWN_MESSAGE="Server has been stopped!" \ - SERVER_PATH="/home/steam/server" + DISCORD_POST_SHUTDOWN_MESSAGE="Server has been stopped!" COPY ./scripts /home/steam/server/ From 5ba0d7f422000615487ac4cbc8cee4fa8ed702f1 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:46:17 -0500 Subject: [PATCH 17/22] Trying to please spell check --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 9501af473..9e025b551 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,5 +1,5 @@ #!/bin/bash -# shellcheck source=/dev/null +# shellcheck source=scripts/helper_functions.sh source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" From f7f7f5e2cdc8a1e3390d2c2d395341b989975a54 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:47:26 -0500 Subject: [PATCH 18/22] Removed path for testing --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 9e025b551..8b5302613 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source=scripts/helper_functions.sh -source "/home/steam/server/helper_functions.sh" +source "helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") From cc4ce1bd28f6740d39112b3a29648912e58f3566 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:49:40 -0500 Subject: [PATCH 19/22] Ignore error --- scripts/compile-settings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 8b5302613..9501af473 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash -# shellcheck source=scripts/helper_functions.sh -source "helper_functions.sh" +# shellcheck source=/dev/null +source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") From 43c307d95287991abe9ef254f2033c7af6574f25 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:52:38 -0500 Subject: [PATCH 20/22] Using source-path --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 9501af473..9fa8eebbd 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,5 +1,5 @@ #!/bin/bash -# shellcheck source=/dev/null +# shellcheck source-path=scripts source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" From 9b3cf46bc8bdb910184c31ffc8f017bc5f8fe978 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:53:18 -0500 Subject: [PATCH 21/22] Removed path --- scripts/compile-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 9fa8eebbd..5c44dcbf5 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck source-path=scripts -source "/home/steam/server/helper_functions.sh" +source "helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file") From f7a9772db40a35e50254387f9f2fabb7627f22e3 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Thu, 8 Feb 2024 13:55:16 -0500 Subject: [PATCH 22/22] Ignoring path --- scripts/compile-settings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 5c44dcbf5..9501af473 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -1,6 +1,6 @@ #!/bin/bash -# shellcheck source-path=scripts -source "helper_functions.sh" +# shellcheck source=/dev/null +source "/home/steam/server/helper_functions.sh" config_file="/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" config_dir=$(dirname "$config_file")