From 4805b9049e213869f0e10cc102f4643f0b32218e Mon Sep 17 00:00:00 2001 From: Konano Date: Sun, 23 Jul 2023 02:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init_root.sh | 4 ++-- init_sudo.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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