summaryrefslogtreecommitdiff
path: root/scripts/node-exists.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/node-exists.pl')
-rwxr-xr-xscripts/node-exists.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/node-exists.pl b/scripts/node-exists.pl
index 8a77ea3..4a7505f 100755
--- a/scripts/node-exists.pl
+++ b/scripts/node-exists.pl
@@ -39,8 +39,10 @@ if ($ARGV[0])
$level = $level . " " . $sublevel;
$i++;
}
-
+ if ($ARGV[1])
+ {
$config->setLevel($level);
+ }
if ($config->existsOrig($node))
{ exit 0; }
else { exit 1; }