From 17f4690179c342011927d1df8646922f003e262a Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Wed, 23 Feb 2022 22:50:07 +0800 Subject: [PATCH] Update unlock.sh --- unlock.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unlock.sh b/unlock.sh index 6fa50de..32f8c5a 100644 --- a/unlock.sh +++ b/unlock.sh @@ -459,7 +459,8 @@ action5(){ [ -n "$UNLOCK_MODE_NOW" ] && uninstall TASK="" RESULT_OUTPUT="${T[${L}44]}" -check_dependencies nodejs npm +node -v >/dev/null 2>&1 && check_dependencies nodejs +node -v >/dev/null 2>&1 && check_dependencies npm npm install -g pm2 export_unlock_file pm2 start /etc/wireguard/warp_unlock.sh