fix defect 3317760

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@9841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav
2011-06-17 11:13:00 +00:00
parent b303b5d01a
commit 9e96941ca3
+4 -3
View File
@@ -340,7 +340,7 @@ print "Compiling Information...\n";
print "Information compiled...\n";
`chmod 400 $LogFile`; # Processing the log file
print "Send $LogFile to IBM Support.\n";
my $donotdelete=0;
if ( `which gunzip` == 0 ) { # Compressing the tar file
`gzip -f $TarFile`;
}
@@ -350,10 +350,11 @@ elsif ( `which compress` == 0 ) {
else {
print
"gzip and compress are not available. The tar file $TarFile will not be compressed";
$donotdelete=1;
}
if (-e $TarFile ){
rm $TarFile;
if (-e $TarFile && $donotdelete == 0){ # Don't remove if only file to send
`rm $TarFile`;
}
if ( -e $TarFile . ".gz" ) {