We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e70e3 commit 92f8eefCopy full SHA for 92f8eef
nsk.sh
@@ -1,7 +1,9 @@
1
#!/bin/bash
2
MENU_URL="$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/NodeSeekDev/NodeScriptKit/releases/latest)"
3
MENU_VERSION="${MENU_URL##*/}"
4
-if [ "$MENU_VERSION" != "$(cat /etc/nsk/version)" ] ; then
+if [ -n "$MENU_VERSION" ] && \
5
+ [ "$MENU_VERSION" != latest ] && \
6
+ [ "$MENU_VERSION" != "$(cat /etc/nsk/version)" ] ; then
7
echo "检测到有新版本可以更新,是否升级?[y/N]"
8
read -r ans
9
if [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then
0 commit comments