From 053ff532a6f27f61cf55f73a356ef0b0a8ad61a1 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 6 Mar 2024 19:40:01 +0400 Subject: [PATCH] fix debian-bash-upgrade --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 964c115..8dfbc4f 100755 --- a/install.sh +++ b/install.sh @@ -39,8 +39,10 @@ function install_host() { echo "--------------------------------" echo "debian-bash has been deprecated!" echo "--------------------------------" - + read -rn1 -p 'Would you like to migrate to the new project named `miaou-bash`, (yN)?' answer + [[ -z "$PS1" ]] && answer='y' + if [[ "$answer" == 'y' ]];then pushd /tmp pushd /opt/debian-bash