diff --git a/lgsm/modules/install_gamedig.sh b/lgsm/modules/install_gamedig.sh index fdfe3a731..08184b796 100644 --- a/lgsm/modules/install_gamedig.sh +++ b/lgsm/modules/install_gamedig.sh @@ -5,7 +5,7 @@ # Website: https://linuxgsm.com # Description: Installs nodejs and gamedig -if [ "$(command -v node)" ] || [ ! -f "${lgsmdir}/node_modules/gamedig/bin/gamedig.js" ]; then +if [ "$(command -v node)" ] && [ ! -f "${lgsmdir}/node_modules/gamedig/bin/gamedig.js" ]; then cd "${lgsmdir}" || exit npm install gamedig@5.0.0-beta.2 fi