Skip to content

Commit

Permalink
Fixed ShellCheck source errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Phelms215 committed Feb 11, 2024
1 parent 6d3b948 commit d453427
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/auto_reboot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

if [ "${RCON_ENABLED,,}" != true ]; then
LogWarn "Unable to reboot. RCON is required."
Expand Down
1 change: 1 addition & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

DiscordMessage "Creating backup..." "in-progress"
Expand Down
1 change: 1 addition & 0 deletions scripts/discord.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

# Defaults
Expand Down
1 change: 1 addition & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

if [[ ! "${PUID}" -eq 0 ]] && [[ ! "${PGID}" -eq 0 ]]; then
Expand Down
1 change: 1 addition & 0 deletions scripts/restore.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

# Backup file directory path
Expand Down
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ architecture=$(dpkg --print-architecture)
# Get host kernel page size
kernel_page_size=$(getconf PAGESIZE)

# Check kernel page size for arm64 hosts before running steamcmd
# Check kernel page size for arm64 hosts before running steamcmdac
if [ "$architecture" == "arm64" ] && [ "$kernel_page_size" != "4096" ]; then
LogError "Only ARM64 hosts with 4k page size is supported."
exit 1
Expand Down
1 change: 1 addition & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck source=/dev/null
source "/home/steam/server/helper_functions.sh"

UpdateRequired
Expand Down

0 comments on commit d453427

Please sign in to comment.