From 88f0c8b0ae202c089a030221b0820380807fa8a4 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 28 Sep 2011 18:15:11 +0000 Subject: [PATCH] fix tar when no directory input git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/getxcatdocs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/getxcatdocs b/xCAT-client/bin/getxcatdocs index 92e7112c8..c6d6d4cf8 100755 --- a/xCAT-client/bin/getxcatdocs +++ b/xCAT-client/bin/getxcatdocs @@ -43,7 +43,7 @@ if ($^O =~ /^aix/i) { die "Error: this command is not yet supported on AIX.\n"; my $destdir = scalar(@ARGV) ? $ARGV[0] : '.'; chdir($destdir); - +my $docdir = $ENV{'PWD'}; # Download the HTML mkdir('html'); chdir('html'); @@ -70,7 +70,7 @@ foreach my $file (@dir) { runh2p($cmd); } # tar and compress -chdir($destdir); +chdir($docdir); my $date=`date +%Y%m%d%H%M`; chop $date; my $docname="xcat-docs-snap$date.tar";