From 5f325663b2c82dcd2fcee279627aaeddd1867f1c Mon Sep 17 00:00:00 2001 From: natemaia Date: Sat, 25 Apr 2020 20:18:50 -0700 Subject: [PATCH] Don't read ANS if it's empty --- archlabs-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archlabs-installer b/archlabs-installer index 13b763b..7e75c65 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -387,7 +387,7 @@ main() 12 "View configuration and command selections" \ 13 "* Confirm choices and start the installation" 2> "$ANS" - read -r SEL < "$ANS" + [[ -s "$ANS" ]] && read -r SEL < "$ANS" [[ -z $WARN && $SEL =~ (2|5) ]] && { msg "Data Warning" "$_warn"; WARN=true; } case $SEL in 1) part_show ;;