From ac441a6eaa66243e72464e90f2f0769707b68709 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sat, 6 Apr 2019 21:46:23 -0300 Subject: [PATCH] AK2: fix customdd detection logic --- tools/ak2-core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index c30a799..352295c 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -39,7 +39,7 @@ split_boot() { if [ ! -e "$(echo $block | cut -d\ -f1)" ]; then ui_print " "; ui_print "Invalid partition. Aborting..."; exit 1; fi; - if [ "$(echo $block | cut -d\ -f2-)" ]; then + if [ "$(echo $block | grep ' ')" ]; then block=$(echo $block | cut -d\ -f1); customdd=$(echo $block | cut -d\ -f2-); elif [ ! "$customdd" ]; then