minor bug fixes

This commit is contained in:
Daniel Sommer 2021-04-12 00:11:47 +02:00
parent 8c86f71718
commit 6647754444

View file

@ -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