diff options
Diffstat (limited to 'server/lib/ogfunctions.sh')
-rwxr-xr-x | server/lib/ogfunctions.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/ogfunctions.sh b/server/lib/ogfunctions.sh index 413a700c..f1b9e555 100755 --- a/server/lib/ogfunctions.sh +++ b/server/lib/ogfunctions.sh @@ -43,6 +43,7 @@ function help() { USAGE=$(grep "^#@usage" "$0" | cut -f2- -d" ") [ -n "$USAGE" ] && PARAMS=$(awk '$1=="#@param" {sub($1,""); print "\t",$0}' "$0") fi + [ "$PROG" ] || PROG="$(basename "$0")" # Showing help. echo "$PROG: ${DESCRIPTION:-"no description"}" echo "Usage: ${USAGE:-"no usage info"}" |