summaryrefslogtreecommitdiffstats
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rwxr-xr-xserver/lib/ogfunctions.sh1
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