From 8ee7e111e97587a2207775dfb5920270f82dd57d Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Fri, 24 Feb 2017 02:36:43 +0100 Subject: [PATCH] correction of the correction :-p --- lib/util-disk.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/util-disk.sh b/lib/util-disk.sh index 1f4916f..a597b79 100644 --- a/lib/util-disk.sh +++ b/lib/util-disk.sh @@ -435,8 +435,10 @@ mount_partitions() { # If it is already a fat/vfat partition... if [[ $(fsck -N $PARTITION | grep fat) ]]; then - DIALOG " $_PrepMntPart " --yesno "$_FormUefiBody $PARTITION $_FormUefiBody2" 0 0 && mkfs.vfat -F32 ${PARTITION} >/dev/null 2>$ERR - check_for_error "mkfs.vfat -F32 ${PARTITION}" "$?" + DIALOG " $_PrepMntPart " --yesno "$_FormUefiBody $PARTITION $_FormUefiBody2" 0 0 && { + mkfs.vfat -F32 ${PARTITION} >/dev/null 2>$ERR + check_for_error "mkfs.vfat -F32 ${PARTITION}" "$?" + } else mkfs.vfat -F32 ${PARTITION} >/dev/null 2>$ERR check_for_error "mkfs.vfat -F32 ${PARTITION}" "$?"