fix "encrypted" question
This commit is contained in:
parent
fb856ac8d5
commit
3d8327112d
@ -42,8 +42,8 @@ do
|
|||||||
read -p "Target drive is " targetDrive
|
read -p "Target drive is " targetDrive
|
||||||
targetDrive=/dev/$targetDrive
|
targetDrive=/dev/$targetDrive
|
||||||
done
|
done
|
||||||
echo "Encrypted?"
|
echo "Encrypted? (Y/n) "
|
||||||
while read -r -n 1 -s answer ; do
|
while read -r -n 1 answer ; do
|
||||||
if [[ $answer = [YyNn] ]]; then
|
if [[ $answer = [YyNn] ]]; then
|
||||||
[[ $answer = [Yy] ]] && encryptedDevice=true && echo "WARNING You will be asked for password later" #read -p "Password: " encryptedPassword
|
[[ $answer = [Yy] ]] && encryptedDevice=true && echo "WARNING You will be asked for password later" #read -p "Password: " encryptedPassword
|
||||||
[[ $answer = [Nn] ]] && encryptedDevice=false
|
[[ $answer = [Nn] ]] && encryptedDevice=false
|
||||||
|
Loading…
Reference in New Issue
Block a user