diff --git a/src/download-caddy.sh b/src/download-caddy.sh index b71c0d7..74a9734 100644 --- a/src/download-caddy.sh +++ b/src/download-caddy.sh @@ -1,6 +1,7 @@ _download_caddy_file() { local caddy_tmp="/tmp/install_caddy/" local caddy_tmp_file="/tmp/install_caddy/caddy.tar.gz" + [[ -d $caddy_tmp ]] && rm -rf $caddy_tmp if [[ $sys_bit == "i386" || $sys_bit == "i686" ]]; then local caddy_download_link="https://caddyserver.com/download/linux/386?license=personal" else @@ -19,7 +20,6 @@ _download_caddy_file() { if [[ ! -f /usr/local/bin/caddy ]]; then echo -e "$red 安装 Caddy 出错!" && exit 1 fi - rm -rf $caddy_tmp } _install_caddy_service() { setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/caddy diff --git a/v2ray.sh b/v2ray.sh index 63990c3..87004d5 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v3.01" +_version="v3.02" cmd="apt-get"