Skip to content

Commit

Permalink
Moved source helper_install.sh out of helper_functions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Feb 19, 2024
1 parent 43ca7a2 commit acdf259
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/helper_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,3 @@ countdown_message() {
fi
return "$return_val"
}

# Helper Functions for installation & updates
# shellcheck source=/dev/null
source "/home/steam/server/helper_install.sh"
3 changes: 3 additions & 0 deletions scripts/helper_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
# This file contains functions which can be used in multiple scripts

# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

# Returns 0 if game is installed
# Returns 1 if game is not installed
IsInstalled() {
Expand Down
4 changes: 4 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

# Helper Functions for installation & updates
# shellcheck source=/dev/null
source "/home/steam/server/helper_install.sh"

dirExists "/palworld" || exit
isWritable "/palworld" || exit
isExecutable "/palworld" || exit
Expand Down
4 changes: 4 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

# Helper Functions for installation & updates
# shellcheck source=/dev/null
source "/home/steam/server/helper_install.sh"

# Check if Update was actually required
if UpdateRequired; then
if [ "${UPDATE_ON_BOOT}" = false ]; then
Expand Down

0 comments on commit acdf259

Please sign in to comment.