Skip to content

Commit 92f8eef

Browse files
committed
update nsk.sh
1 parent 32e70e3 commit 92f8eef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nsk.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22
MENU_URL="$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/NodeSeekDev/NodeScriptKit/releases/latest)"
33
MENU_VERSION="${MENU_URL##*/}"
4-
if [ "$MENU_VERSION" != "$(cat /etc/nsk/version)" ] ; then
4+
if [ -n "$MENU_VERSION" ] && \
5+
[ "$MENU_VERSION" != latest ] && \
6+
[ "$MENU_VERSION" != "$(cat /etc/nsk/version)" ] ; then
57
echo "检测到有新版本可以更新,是否升级?[y/N]"
68
read -r ans
79
if [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then

0 commit comments

Comments
 (0)