From 4cf3073a59b820b4a4223193ecd429287020f76c 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 db8b9ea56b975d765e6456e8e11a3809092182dc 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 da91fbacd8708ec83826ecb4ffa049e1bcb61193 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 00b1839af15f4bdd1414b222f4f7b25b24b85e11 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 23f8e19128c942c409d7192f0b1a7fbe88cff197 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 fbed7123cf60227cab8cbf2eaec74f944a0e67a0 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 34ba502e8cbb3dc561526d58fb80ed868fcaea45 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 f7b13ae27078afb0e058638d5d0a6b3faee25ec8 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 9c6df189cc3b4093cb6c957e5653ed85d01c873f 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 f151c7966f9ce316fb42c7e7661071defad43199 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 eaa911fc40074e83c16cbc14e58aba0faa30fe5b 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 6b317504bddbc05ea1d9e48a9305fa2cc0c522bf 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 fcab4ea89e43252edcbf180e793d7aff8663e25e 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 fd4f6d2430c16818ee00c816b475ba44104aa11e 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 aea4999a1417245016c7d316734444bedaf68ec8 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 b54f367b8df29807feaf5eaa30cb26bb2c63162c 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 c80abd05a5dc0afc1dd96a8e0e32f89d8d9d8ddc 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 ee2358b300d444d9156adbe3e70df1d5c69bb031 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 a1dfb152eee7df697bc6a85f4bf4102d6dfd1107 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 8a2a8bbc1c4d4631d5a0db1168c21c482f5d3d7e 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")