diff --git a/scripts/helper_functions.sh b/scripts/helper_functions.sh index ac64bc049..162306b77 100644 --- a/scripts/helper_functions.sh +++ b/scripts/helper_functions.sh @@ -175,7 +175,3 @@ broadcast_command() { fi return "$return_val" } - -# Helper Functions for installation & updates -# shellcheck source=scripts/helper_install.sh -source "/home/steam/server/helper_install.sh" \ No newline at end of file diff --git a/scripts/helper_install.sh b/scripts/helper_install.sh index a75c923e1..3d1ca68c6 100644 --- a/scripts/helper_install.sh +++ b/scripts/helper_install.sh @@ -1,6 +1,9 @@ #!/bin/bash # This file contains functions which can be used in multiple scripts +# shellcheck source=scripts/helper_functions.sh +source "/home/steam/server/helper_functions.sh" + # Returns 0 if game is installed # Returns 1 if game is not installed IsInstalled() { diff --git a/scripts/start.sh b/scripts/start.sh index c1c120989..c0ef9a7bc 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -2,6 +2,10 @@ # shellcheck source=scripts/helper_functions.sh source "/home/steam/server/helper_functions.sh" +# Helper Functions for installation & updates +# shellcheck source=scripts/helper_install.sh +source "/home/steam/server/helper_install.sh" + dirExists "/palworld" || exit isWritable "/palworld" || exit isExecutable "/palworld" || exit diff --git a/scripts/update.sh b/scripts/update.sh index 6876fc4f2..0eaf94a98 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -2,6 +2,10 @@ # shellcheck source=scripts/helper_functions.sh source "/home/steam/server/helper_functions.sh" +# Helper Functions for installation & updates +# shellcheck source=scripts/helper_install.sh +source "/home/steam/server/helper_install.sh" + UpdateRequired updateRequired=$? # Check if Update was actually required