From cc5ce81a0b2d4cf4fea6fb4a3edea357c24adcc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Mon, 6 Feb 2023 09:10:51 +0000 Subject: [PATCH] Update CFwarp.sh --- CFwarp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CFwarp.sh b/CFwarp.sh index 30ea16f..73f3ce3 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -19,7 +19,7 @@ rred(){ echo -e "\033[35m\033[01m$1\033[0m";} readtp(){ read -t5 -n26 -p "$(yellow "$1")" $2;} readp(){ read -p "$(yellow "$1")" $2;} [[ $EUID -ne 0 ]] && yellow "请以root模式运行脚本" && exit - +[[ -e /etc/hosts ]] && grep -qE '^ *172.65.251.78 gitlab.com' /etc/hosts || echo -e '\n172.65.251.78 gitlab.com' >> /etc/hosts start(){ yellow " 请稍等……正在扫描vps类型及参数中……" if [[ -f /etc/redhat-release ]]; then