From 754c8871824ef7657da8f66a61f4b2e41b70c930 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 13 Oct 2010 18:10:55 +0000 Subject: [PATCH] remove bugus error msg git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/InstUtils.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index 66d76aa9d..f82dc3925 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -990,18 +990,19 @@ sub dolitesetup # it's a dir so copy everything in it # ex. mkdir -p ../inst_root/.default/foo/bar # ex. cp -r .../inst_root/foo/bar/ ../inst_root/.default/foo/bar - $cpcmd = qq~mkdir -p $default$file; cp -r $instrootfile* $default$file~; + $cpcmd = qq~mkdir -p $default$file; cp -r $instrootfile* $default$file 2>/dev/null~; } else { # copy file # ex. mkdir -p ../inst_root/.default/etc # ex. cp .../inst_root/etc/lppcfg ../inst_root/.default/etc - $cpcmd = qq~mkdir -p $default$filedir; cp $instrootfile $default$filedir~; + $cpcmd = qq~mkdir -p $default$filedir; cp $instrootfile $default$filedir 2>/dev/null~; } my $output = xCAT::Utils->runcmd("$cpcmd", -1); - if ($::RUNCMD_RC != 0) +# if ($::RUNCMD_RC != 0) + if (0) { my $rsp; push @{$rsp->{data}}, "Could not copy $instrootfile to $default subdirectory.";