From 18ad23da7bde5c1175e7ee5a16e5313547a337b6 Mon Sep 17 00:00:00 2001 From: phga Date: Fri, 11 Mar 2022 20:38:09 +0100 Subject: [PATCH] fix: condition was always false --- bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index b3a9fc3..70b243b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,7 +22,7 @@ init() { [[ "$DEV" =~ sd[a-z] ]] && SUF="1-3" && MODE="SATA" [[ "$DEV" =~ nvme[0-9]n[0-9] ]] && SUF="p1-3" && MODE="NVME" [ -z "$ENC" ] && read -p "Do you want the root partition to be encrypted (y/n)? " ENC - [ "$ENC" -eq "y" ] && ENC=true || ENC=false + [ "$ENC" == "y" ] && ENC=true || ENC=false echo "+---------------------+" echo "| Archlinux Bootstrap |" @@ -32,7 +32,7 @@ init() { echo "DEVICEPARTS = $DEV$SUF" echo "ENCRYPTION = $ENC" read -p "Do you want to continue with these values (y/n)? " cont - [ ! "$cont" = "y" ] && unset NAME PASSWD DEV && init + [ ! "$cont" = "y" ] && unset NAME PASSWD DEV ENC && init echo "Let's GOOOO" }