From 66477544446240503b73a16d39a1350727311902 Mon Sep 17 00:00:00 2001 From: velvettear Date: Mon, 12 Apr 2021 00:11:47 +0200 Subject: [PATCH] minor bug fixes --- debian_install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/debian_install.sh b/debian_install.sh index 3614375..f0d183a 100755 --- a/debian_install.sh +++ b/debian_install.sh @@ -48,8 +48,7 @@ apt-get install -y \ unzip \ rsync \ dropbear \ - openssh-client \ - rxvt-unicode-terminfo + openssh-client read -p "|> enter additional packages to install: " packages [[ "$packages" ]] && packages="$(printf "$packages" | tr '\n' ' ')" && apt-get install -y $packages @@ -127,9 +126,9 @@ printf "|>> debian install script finished!\n" printf "|>> remote access: 'ssh $user@$(ip -f inet -o address | awk '/eth0/ {print $4}' | cut -d "/" -f1)'\n" read -p "|> would you like to delete the install script? [YES/no] " prompt -[[ "$prompt" ]] && prompt="$(printf "$prompt" | tr "[:lower:]")" +[[ "$prompt" ]] && prompt="${prompt,,}" [[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "prompt" == "yes" ]] && printf "|> deleting script '$0'...\n" && rm -f "$0" read -p "|> would you like to reboot now? [YES/no] " prompt -[[ "$prompt" ]] && prompt="$(printf $prompt | tr "[:lower:]")" +[[ "$prompt" ]] && prompt="${prompt,,}" [[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "$prompt" == "yes" ]] && printf "|> rebooting now!\n" && reboot