diff --git a/init_root.sh b/init_root.sh index 28a9895..3836fc7 100755 --- a/init_root.sh +++ b/init_root.sh @@ -106,9 +106,9 @@ configure_apt_upgrade() { } configure_apt_install() { - read -p "要运行 apt install 吗?[Y]: " response + read -p "要运行 apt install 吗?[N]: " response - if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then + if [[ $response =~ ^[Yy]$ ]]; then apt update apt install tmux git curl htop net-tools tcptraceroute tar unzip -y apt install hexyl bat neofetch fd-find fzf -y diff --git a/init_sudo.sh b/init_sudo.sh index 015f592..44ade57 100755 --- a/init_sudo.sh +++ b/init_sudo.sh @@ -112,9 +112,9 @@ configure_apt_upgrade() { } configure_apt_install() { - read -p "要运行 apt install 吗?[Y]: " response + read -p "要运行 apt install 吗?[N]: " response - if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then + if [[ $response =~ ^[Yy]$ ]]; then sudo apt update sudo apt install tmux git curl htop net-tools tcptraceroute tar unzip -y sudo apt install hexyl bat neofetch fd-find fzf -y