mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-29 05:49:02 +00:00
Use words for message types instead of numbers
This commit is contained in:
parent
632ce7f506
commit
2b15bb771f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user