AK2: fix customdd detection logic

This commit is contained in:
osm0sis committed 2019-04-06 21:46:23 -03:00
1 parent a40fe9c65b
commit ac441a6eaa
1 file changed
+1 -1
+1 -1
View File
@@ -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