From 12add1c76542feecebc5f5b00b9716b363192ac7 Mon Sep 17 00:00:00 2001 From: MatMoul <matmoul@gmail.com> Date: Sun, 1 Nov 2015 18:57:03 +0100 Subject: [PATCH] Correct bug on LUKS bad confirmation --- archfi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/archfi b/archfi index 33b7cfc..28487ba 100644 --- a/archfi +++ b/archfi @@ -571,18 +571,20 @@ formatdevice(){ echo "$txtcreateluksdevice" echo "cryptsetup luksFormat $2" cryptsetup luksFormat $2 - pressanykey if [ ! "$?" = "0" ]; then + pressanykey return 0 fi + pressanykey echo "" echo "$txtopenluksdevice" echo "cryptsetup luksOpen $2 $1" cryptsetup luksOpen $2 $1 - pressanykey if [ ! "$?" = "0" ]; then + pressanykey return 0 fi + pressanykey options=() options+=("normal" "") options+=("fast" "")