diff --git a/restore.sh b/restore.sh index e790a34..59febdf 100644 --- a/restore.sh +++ b/restore.sh @@ -42,8 +42,8 @@ do read -p "Target drive is " targetDrive targetDrive=/dev/$targetDrive done -echo "Encrypted?" -while read -r -n 1 -s answer ; do +echo "Encrypted? (Y/n) " +while read -r -n 1 answer ; do if [[ $answer = [YyNn] ]]; then [[ $answer = [Yy] ]] && encryptedDevice=true && echo "WARNING You will be asked for password later" #read -p "Password: " encryptedPassword [[ $answer = [Nn] ]] && encryptedDevice=false