Update sb.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user