From ee9a90075eb85291be021cf6079e0f954e28048a Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 6 Mar 2024 19:15:06 +0400 Subject: [PATCH] migration proposal --- install.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2168fb4..379e855 100755 --- a/install.sh +++ b/install.sh @@ -36,11 +36,24 @@ function install_host() { fi else - apt-get update - apt-get install -y "${REQUIRED_PKGS[@]}" - ./init.sh + 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 + if [[ "$answer" == 'y' ]];then + pushd /tmp + pushd /opt/debian-bash + ./uninstall.sh + popd + rm -rf /opt/debian-bash + curl https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s + source /etc/bash.bashrc + exit 0 + fi + echo "cancelled!" + exit 1 fi - } function install_containers() {