Skip to content

Commit a7a8e38

Browse files
committed
fix(gamedig): ensure that node modules are valid
1 parent f23e5f6 commit a7a8e38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lgsm/modules/check_gamedig.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)
1010
echo -e "${bold}${lightyellow}Installing Gamedig${default}"
1111
fn_script_log_info "Installing Gamedig"
1212
cd "${lgsmdir}" || exit
13-
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
13+
curl -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
1414
npm install
15+
elif [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)" -ge 16 ]; then
16+
cd "${lgsmdir}" || exit
17+
curl -s -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
18+
npm update > /dev/null 2>&1
1519
fi

0 commit comments

Comments
 (0)