From 2b15bb771facd90fe22991815ed7126ca7823055 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Mon, 7 Sep 2020 20:38:39 -0400 Subject: [PATCH] Use words for message types instead of numbers --- lug-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 1f5ac42..8df7756 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -88,14 +88,14 @@ message() { else # Fall back to text-based messages when zenity is not available case "$1" in - 1) + "info") # info message # call format: message info "text to display" clear echo -e "\n$2\n" read -n 1 -s -p "Press any key..." ;; - 2) + "warning") # warning message # call format: message warning "text to display" clear @@ -103,7 +103,7 @@ message() { read -n 1 -s -p "Press any key..." return 0 ;; - 3) + "question") # question # call format: message question "question to ask?" clear