mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-30 18: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
|
else
|
||||||
# Fall back to text-based messages when zenity is not available
|
# Fall back to text-based messages when zenity is not available
|
||||||
case "$1" in
|
case "$1" in
|
||||||
1)
|
"info")
|
||||||
# info message
|
# info message
|
||||||
# call format: message info "text to display"
|
# call format: message info "text to display"
|
||||||
clear
|
clear
|
||||||
echo -e "\n$2\n"
|
echo -e "\n$2\n"
|
||||||
read -n 1 -s -p "Press any key..."
|
read -n 1 -s -p "Press any key..."
|
||||||
;;
|
;;
|
||||||
2)
|
"warning")
|
||||||
# warning message
|
# warning message
|
||||||
# call format: message warning "text to display"
|
# call format: message warning "text to display"
|
||||||
clear
|
clear
|
||||||
@ -103,7 +103,7 @@ message() {
|
|||||||
read -n 1 -s -p "Press any key..."
|
read -n 1 -s -p "Press any key..."
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
3)
|
"question")
|
||||||
# question
|
# question
|
||||||
# call format: message question "question to ask?"
|
# call format: message question "question to ask?"
|
||||||
clear
|
clear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user