Skip to content

Commit

Permalink
fix(gamedig): ensure that node modules are valid
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Aug 12, 2024
1 parent f23e5f6 commit a7a8e38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lgsm/modules/check_gamedig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ if [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)
echo -e "${bold}${lightyellow}Installing Gamedig${default}"
fn_script_log_info "Installing Gamedig"
cd "${lgsmdir}" || exit
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
curl -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
npm install
elif [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)" -ge 16 ]; then
cd "${lgsmdir}" || exit
curl -s -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json"
npm update > /dev/null 2>&1
fi

0 comments on commit a7a8e38

Please sign in to comment.