mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 09:04:19 +00:00
Text menus: Don't pause when invoked via command line arguments
This commit is contained in:
parent
6bd310b5c2
commit
0a48396ffd
@ -368,7 +368,10 @@ message() {
|
||||
# info message
|
||||
# call format: message info "text to display"
|
||||
printf "\n$2\n\n"
|
||||
if [ "$cmd_line" != "true" ]; then
|
||||
# Don't pause if we've been invoked via command line arguments
|
||||
read -n 1 -s -p "Press any key..."
|
||||
fi
|
||||
;;
|
||||
"warning")
|
||||
# warning message
|
||||
@ -2565,6 +2568,7 @@ Usage: lug-helper <options>
|
||||
|
||||
# Call the requested functions and exit
|
||||
if [ "${#cargs[@]}" -gt 0 ]; then
|
||||
cmd_line="true"
|
||||
for (( x=0; x<"${#cargs[@]}"; x++ )); do
|
||||
${cargs[x]}
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user