From 1e306a3892eb05e3ddcc32615a9d8c6d17af20b7 Mon Sep 17 00:00:00 2001 From: nott Date: Sat, 10 Oct 2009 17:12:05 +0000 Subject: [PATCH] Handle node range first. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xcatDBcmds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/xcatDBcmds b/xCAT-client/bin/xcatDBcmds index baf1d03d6..bdd13826f 100755 --- a/xCAT-client/bin/xcatDBcmds +++ b/xCAT-client/bin/xcatDBcmds @@ -74,8 +74,9 @@ if (grep(/^$bname$/, @checkcmds) ) { getopts('ab:d:fh?i:l:urs:m:no:t:vVp:'); # check the operands for a noderange while (my $a = shift(@ARGV)) { - if (!($a =~ /=/)) { + if (!($a =~ /=/) && !($a =~ /^-/)) { $cmdref->{noderange}->[0]=$a; + last; } } }