mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 14:44:20 +00:00
Improve comments
This commit is contained in:
parent
05ccd4bbfb
commit
36fe89dd0b
@ -89,7 +89,7 @@ message() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Display the message
|
# Display the message
|
||||||
shift 1 # drop the first numerical argument and shift the remaining up one
|
shift 1 # drop the first argument and shift the remaining up one
|
||||||
zenity "${margs[@]}""$@" --width="400" --title="Star Citizen LUG Helper"
|
zenity "${margs[@]}""$@" --width="400" --title="Star Citizen LUG Helper"
|
||||||
else
|
else
|
||||||
# Fall back to text-based messages when zenity is not available
|
# Fall back to text-based messages when zenity is not available
|
||||||
@ -158,6 +158,8 @@ message() {
|
|||||||
# *MUST* correspond to the indeces in "menu_options".
|
# *MUST* correspond to the indeces in "menu_options".
|
||||||
# In other words, it is expected that menu_actions[1] is the correct action
|
# In other words, it is expected that menu_actions[1] is the correct action
|
||||||
# to be executed when menu_options[1] is selected, and so on for each element.
|
# to be executed when menu_options[1] is selected, and so on for each element.
|
||||||
|
#
|
||||||
|
# See MAIN at the bottom of this script for an example of generating a menu.
|
||||||
menu() {
|
menu() {
|
||||||
# Sanity checks
|
# Sanity checks
|
||||||
if [ "${#menu_options[@]}" -eq 0 ]; then
|
if [ "${#menu_options[@]}" -eq 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user