vshelper.isDebug(): fixed it...
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 1 Feb 2005 16:54:33 +0000 (16:54 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 1 Feb 2005 16:54:33 +0000 (16:54 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1843 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index c874b14..2cc3de0 100644 (file)
@@ -739,13 +739,14 @@ function vshelper.isEnabled
     return 0
 }
 
-function vshelper.isDebug [<vserver>]
+## Usage: vshelper.isDebug [<vserver>]
+function vshelper.isDebug
 {
     test ! -e "$CONFDIR"/.defaults/apps/vshelper/debug     || return 1
     $_VSERVER_INFO - FEATURE vshelper                       || return 1
-    if test -n "$2"; then
-       local appdir=$($_VSERVER_INFO "$2" APPDIR vshelper) || return 1
-       test -z "$2" -o ! -e "$appdir/debug"                || return 1
+    if test -n "$1"; then
+       local appdir=$($_VSERVER_INFO "$1" APPDIR vshelper) || return 1
+       test -z "$1" -o ! -e "$appdir/debug"                || return 1
     fi
 
     return 0