diff options
Diffstat (limited to 'server/lib')
-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 f1b9e555..30da3107 100755 --- a/server/lib/ogfunctions.sh +++ b/server/lib/ogfunctions.sh @@ -10,6 +10,7 @@ # Showing an error message. function raiseError() { + [ "$PROG" ] || PROG="$(basename "$0")" case "$1" in usage) echo "$PROG: Usage error: Type \"$PROG help\"" >&2 |