Don't read ANS if it's empty

This commit is contained in:
natemaia 2020-04-25 20:18:50 -07:00
parent e0efe9fd21
commit 5f325663b2

View File

@ -387,7 +387,7 @@ main()
12 "View configuration and command selections" \ 12 "View configuration and command selections" \
13 "* Confirm choices and start the installation" 2> "$ANS" 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; } [[ -z $WARN && $SEL =~ (2|5) ]] && { msg "Data Warning" "$_warn"; WARN=true; }
case $SEL in case $SEL in
1) part_show ;; 1) part_show ;;