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