Skip to content

Commit

Permalink
fix incorrect var name
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Nov 28, 2024
1 parent e8d8a3d commit b80be90
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lgsm/modules/alert_email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
mail -s "${alerttitle}" "${email}" < "${alertlog}"
fi
exitcode=$?
if [ "${exitcode}" -qe 0 ]; then
if [ "${exitcode}" -ne 0 ]; then
fn_print_ok_nl "Sending Email alert: ${email}"
fn_script_log_pass "Sending Email alert: ${email}"
else
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/alert_gotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Sends Gotify alert.

module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

jsoninfo=$(
cat << EOF
Expand Down
2 changes: 2 additions & 0 deletions lgsm/modules/check_gamedig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# Website: https://linuxgsm.com
# Description: Installs nodejs and gamedig

moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

if [ "$(command -v node)" ] && [ "$(command -v npm)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)" -ge 16 ] && [ ! -f "${lgsmdir}/node_modules/gamedig/bin/gamedig.js" ]; then
echo -e ""
echo -e "${bold}${lightyellow}Installing Gamedig${default}"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/fix_bt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Resolves issues with Barotrauma.

module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

# Fixes: Missing user data directory error.
if [ ! -d "${XDG_DATA_HOME:="${HOME}/.local/share"}/Daedalic Entertainment GmbH/Barotrauma" ]; then
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_pmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Handles updating of PaperMC and Waterfall servers.

module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles.
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_ut99.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Handles updating of Unreal Tournament 99 servers.

module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles.
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_xnt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Handles updating of Unreal Tournament 99 servers.

module_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles.
Expand Down

0 comments on commit b80be90

Please sign in to comment.