From 90ec824338ad787838af44f93de3ebc6407120c4 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?= <121604513+yonggekkk@users.noreply.github.com> Date: Sun, 19 Apr 2026 17:51:46 +0800 Subject: [PATCH] Update sb.sh --- sb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sb.sh b/sb.sh index 167e77d..035ccc1 100644 --- a/sb.sh +++ b/sb.sh @@ -13,6 +13,7 @@ blue(){ echo -e "\033[36m\033[01m$1\033[0m";} white(){ echo -e "\033[37m\033[01m$1\033[0m";} readp(){ read -p "$(yellow "$1")" $2;} [[ $EUID -ne 0 ]] && yellow "请以root模式运行脚本" && exit +stty erase $'\b' 2>/dev/null || stty erase '^H' 2>/dev/null #[[ -e /etc/hosts ]] && grep -qE '^ *172.65.251.78 gitlab.com' /etc/hosts || echo -e '\n172.65.251.78 gitlab.com' >> /etc/hosts if [[ -f /etc/redhat-release ]]; then release="Centos"