Skip to content

Commit

Permalink
Merge pull request thijsvanloef#413 from Dashboy1998/Include-only-nee…
Browse files Browse the repository at this point in the history
…ded-sources

Moved source includes
  • Loading branch information
thijsvanloef authored Feb 21, 2024
2 parents db99463 + 8b51131 commit 612886d
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 @@ -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"
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=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() {
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=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
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=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
Expand Down

0 comments on commit 612886d

Please sign in to comment.