diff --git a/install.sh b/install.sh index fdc33a4..6d0b62d 100644 --- a/install.sh +++ b/install.sh @@ -206,12 +206,6 @@ update_script() { echo "> 更新脚本" curl -sL https://${GITHUB_RAW_URL}/script/install.sh -o /tmp/nezha.sh - new_version=$(grep "NZ_VERSION" /tmp/nezha.sh | head -n 1 | awk -F "=" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') - if [ -z "$new_version" ]; then - echo "脚本获取失败,请检查本机能否链接 https://${GITHUB_RAW_URL}/script/install.sh" - return 1 - fi - echo "当前最新版本为: ${new_version}" mv -f /tmp/nezha.sh ./nezha.sh && chmod a+x ./nezha.sh echo "3s后执行新脚本" @@ -815,7 +809,7 @@ show_usage() { show_menu() { printf " - ${green}哪吒监控管理脚本${plain} ${red}${NZ_VERSION}${plain} + ${green}哪吒监控管理脚本${plain} --- https://github.com/naiba/nezha --- ${green}1.${plain} 安装面板端 ${green}2.${plain} 修改面板配置 diff --git a/install_en.sh b/install_en.sh index ca42adb..0383930 100644 --- a/install_en.sh +++ b/install_en.sh @@ -206,12 +206,6 @@ update_script() { echo "> Update Script" curl -sL https://${GITHUB_RAW_URL}/script/install_en.sh -o /tmp/nezha.sh - new_version=$(grep "NZ_VERSION" /tmp/nezha.sh | head -n 1 | awk -F "=" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') - if [ -z "$new_version" ]; then - echo "Script failed to get, please check if the network can link https://${GITHUB_RAW_URL}/script/install.sh" - return 1 - fi - echo "The current latest version is: ${new_version}" mv -f /tmp/nezha.sh ./nezha.sh && chmod a+x ./nezha.sh echo "Execute new script after 3s" @@ -815,7 +809,7 @@ show_usage() { show_menu() { printf " - ${green}Nezha Monitor Management Script${plain} ${red}${NZ_VERSION}${plain} + ${green}Nezha Monitor Management Script${plain} --- https://github.com/naiba/nezha --- ${green}1.${plain} Install Dashboard ${green}2.${plain} Modify Dashbaord Configuration diff --git a/template.sh b/template.sh index 66055b3..8bedd70 100644 --- a/template.sh +++ b/template.sh @@ -206,12 +206,6 @@ update_script() { echo "> {{.UpdateScript}}" curl -sL https://${GITHUB_RAW_URL}/script/{{.script}} -o /tmp/nezha.sh - new_version=$(grep "NZ_VERSION" /tmp/nezha.sh | head -n 1 | awk -F "=" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') - if [ -z "$new_version" ]; then - echo "{{.ErrorFetchScript}} https://${GITHUB_RAW_URL}/script/install.sh" - return 1 - fi - echo "{{.CurrentVersionInfo}} ${new_version}" mv -f /tmp/nezha.sh ./nezha.sh && chmod a+x ./nezha.sh echo "{{.ExecuteScriptInfo}}" @@ -815,7 +809,7 @@ show_usage() { show_menu() { printf " - ${green}{{.MenuInfo}}${plain} ${red}${NZ_VERSION}${plain} + ${green}{{.MenuInfo}}${plain} --- https://github.com/naiba/nezha --- ${green}1.${plain} {{.Menu1}} ${green}2.${plain} {{.Menu2}}