diff --git a/archfi b/archfi index 4a0676f..581b6ae 100644 --- a/archfi +++ b/archfi @@ -571,10 +571,18 @@ formatdevice(){ echo "$txtcreateluksdevice" echo "cryptsetup luksFormat $2" cryptsetup luksFormat $2 + if [ ! "$?" = "0"];then + pressanykey + return 0 + fi echo "" echo "$txtopenluksdevice" echo "cryptsetup luksOpen $2 $1" cryptsetup luksOpen $2 $1 + if [ ! "$?" = "0"];then + pressanykey + return 0 + fi options=() options+=("normal" "") options+=("fast" "")