From a2cf62093131e90a7779a232741c960c5dfc7b31 Mon Sep 17 00:00:00 2001 From: natemaia Date: Wed, 4 Nov 2020 20:56:57 -0800 Subject: [PATCH] Fix: $DIST default --- installer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer b/installer index 859f4a8..101f054 100755 --- a/installer +++ b/installer @@ -10,7 +10,8 @@ VER=2.1.64 # default values { -DIST=$(awk -F'"' '/^NAME=/ {print $2}' /etc/os-release 2> /dev/null) +n=$(awk '/^NAME=/ {gsub(/^NAME=|"|'\''/, ""); print $1}' /etc/os-release 2> /dev/null) +DIST=${n:-ArchLabs} MNT=/mnt # installation root mountpoint if not set SYS=Unknown # boot type, to be determined: UEFI/BIOS FONT=ter-i16n # font used for the linux console