diff --git a/install.sh b/install.sh index 99f90bd..0c26c62 100644 --- a/install.sh +++ b/install.sh @@ -59,5 +59,5 @@ echo "安装完成已经启动输入sublink可以呼出菜单" # 下载menu.sh并设置权限 -curl -o "/usr/bin/sublink" https://raw.githubusercontent.com/gooaclok819/sublinkX/main/menu.sh +curl -o /usr/bin/sublink -H "Cache-Control: no-cache" -H "Pragma: no-cache" https://raw.githubusercontent.com/gooaclok819/sublinkX/main/menu.sh chmod 755 "/usr/bin/sublink" diff --git a/menu.sh b/menu.sh index 36c43ca..275004b 100644 --- a/menu.sh +++ b/menu.sh @@ -132,7 +132,7 @@ function Select { systemctl stop sublink fi # 检查是否为最新版本 - if [[ version = latest_release ]]; then + if [[ $version = $latest_release ]]; then echo "当前已经是最新版本" else Up