fix cancel actions partition

merge-requests/273/head
Bernhard Landauer 7 years ago
parent 6d41d0a464
commit 2ee2e63deb

@ -34,7 +34,7 @@ select_device() {
DEVICE="${DEVICE} ${i}"
done
DIALOG " $_DevSelTitle " --menu "$_DevSelBody" 0 0 4 ${DEVICE} 2>${ANSWER} || return 0
DIALOG " $_DevSelTitle " --menu "$_DevSelBody" 0 0 4 ${DEVICE} 2>${ANSWER} || return 1
DEVICE=$(cat ${ANSWER})
}
@ -47,7 +47,7 @@ create_partitions() {
"cgdisk" "UEFI" \
"fdisk" "BIOS & UEFI" \
"gdisk" "UEFI" \
"parted" "BIOS & UEFI" 2>${ANSWER}
"parted" "BIOS & UEFI" 2>${ANSWER} || return 0
clear
# If something selected

@ -75,10 +75,7 @@ prep_menu() {
"2") show_devices
;;
"3") umount_partitions
select_device
if [[ $DEVICE != "" ]]; then
create_partitions
fi
select_device && create_partitions
;;
"4") luks_menu
;;

Loading…
Cancel
Save