From 3a44e7192c06a40e37b445eaa08862c1d94f75a2 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 1 Nov 2015 18:55:33 +0100 Subject: [PATCH] Correct bug on LUKS bad confirmation --- archfi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archfi b/archfi index 581b6ae..33b7cfc 100644 --- a/archfi +++ b/archfi @@ -571,16 +571,16 @@ formatdevice(){ echo "$txtcreateluksdevice" echo "cryptsetup luksFormat $2" cryptsetup luksFormat $2 - if [ ! "$?" = "0"];then - pressanykey + pressanykey + if [ ! "$?" = "0" ]; then return 0 fi echo "" echo "$txtopenluksdevice" echo "cryptsetup luksOpen $2 $1" cryptsetup luksOpen $2 $1 - if [ ! "$?" = "0"];then - pressanykey + pressanykey + if [ ! "$?" = "0" ]; then return 0 fi options=()