From 4234c63ce2a9180a0a8ae75544efaf426a7cdb12 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 23 Jun 2011 05:59:23 +0000 Subject: [PATCH] defect 3324536: fix the issue updatenode cannot handle the node with -h inside git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/updatenode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/updatenode b/xCAT-client/bin/updatenode index 7eee8868f..c852b67e9 100755 --- a/xCAT-client/bin/updatenode +++ b/xCAT-client/bin/updatenode @@ -36,8 +36,8 @@ Getopt::Long::Configure("bundling"); # 'v|version' => \$::VERSION); # display the usage if -h or --help is specified -my $tmp=join(' ', @ARGV); -if (!($tmp =~ /--help|-h$|-v$|--version/)) { +my $tmp=" ".join(' ', @ARGV); +if (!($tmp =~ / (--help|-h|-v|--version)/)) { my $arg=shift(@ARGV); # Set the noderange if ($arg !~ /^-/) {