Skip to content

Commit

Permalink
# v1.0.11 屏蔽 Caddy 插件版 releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Oct 25, 2018
1 parent a8dd24a commit 185c7b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goflyway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: GoFlyway
# Version: 1.0.10
# Version: 1.0.11
# Author: Toyo
# Blog: https://doub.io/goflyway-jc2/
#=================================================

sh_ver="1.0.10"
sh_ver="1.0.11"
filepath=$(cd "$(dirname "$0")"; pwd)
file_1=$(echo -e "${filepath}"|awk -F "$0" '{print $1}')
Folder="/usr/local/goflyway"
Expand Down Expand Up @@ -69,7 +69,7 @@ check_pid(){
PID=$(ps -ef| grep "goflyway"| grep -v grep| grep -v "goflyway.sh"| grep -v "init.d"| grep -v "service"| awk '{print $2}')
}
check_new_ver(){
new_ver=$(wget --no-check-certificate -qO- -t1 -T3 https://api.github.com/repos/coyove/goflyway/releases| grep "tag_name"| head -n 1| awk -F ":" '{print $2}'| sed 's/\"//g;s/,//g;s/ //g')
new_ver=$(wget --no-check-certificate -qO- -t1 -T3 https://api.github.com/repos/coyove/goflyway/releases| grep "tag_name"|grep -v "caddy"| head -n 1| awk -F ":" '{print $2}'| sed 's/\"//g;s/,//g;s/ //g')
if [[ -z ${new_ver} ]]; then
echo -e "${Error} GoFlyway 最新版本获取失败,请手动获取最新版本号[ https://github.com/coyove/goflyway/releases ]"
read -e -p "请输入版本号 [ 格式如 1.3.0a ] :" new_ver
Expand Down

0 comments on commit 185c7b2

Please sign in to comment.