fix question

This commit is contained in:
lulzette 2021-01-24 19:19:08 +03:00
parent 4a08cb45d4
commit 3111605ce1

View File

@ -45,7 +45,8 @@ read -p "Target drive is " targetDrive
targetDrive=/dev/$targetDrive
done
#encrypted?
while read -r -n 1 answer -p "Encrypted? (Y/N)" ; 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