|
|
@@ -3,7 +3,7 @@
|
|
|
# Author: Daniel Gibbs
|
|
|
# Contributors: http://linuxgsm.com/contrib
|
|
|
# Website: https://linuxgsm.com
|
|
|
-# Description: Installs nodejs and gamedig
|
|
|
+# Description: Installs Node.js and gamedig
|
|
|
|
|
|
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 ""
|
|
|
@@ -13,5 +13,5 @@ if [ "$(command -v node)" ] && [ "$(command -v npm)" ] && [ "$(node -v | cut -d
|
|
|
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
|
|
|
npm install
|
|
|
else
|
|
|
- fn_script_log_info "Install NodeJS and NPM to enable Gamedig"
|
|
|
+ fn_script_log_info "Install Node.js and NPM to enable Gamedig"
|
|
|
fi
|