fix "encrypted" question
This commit is contained in:
parent
fb856ac8d5
commit
3d8327112d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user