fix: condition was always false

master
phga 3 years ago
parent a0069154f5
commit 18ad23da7b
Signed by: phga
GPG Key ID: 5249548AA705F019

@ -22,7 +22,7 @@ init() {
[[ "$DEV" =~ sd[a-z] ]] && SUF="1-3" && MODE="SATA" [[ "$DEV" =~ sd[a-z] ]] && SUF="1-3" && MODE="SATA"
[[ "$DEV" =~ nvme[0-9]n[0-9] ]] && SUF="p1-3" && MODE="NVME" [[ "$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 [ -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 "+---------------------+"
echo "| Archlinux Bootstrap |" echo "| Archlinux Bootstrap |"
@ -32,7 +32,7 @@ init() {
echo "DEVICEPARTS = $DEV$SUF" echo "DEVICEPARTS = $DEV$SUF"
echo "ENCRYPTION = $ENC" echo "ENCRYPTION = $ENC"
read -p "Do you want to continue with these values (y/n)? " cont 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" echo "Let's GOOOO"
} }

Loading…
Cancel
Save