From: Matt S Trout Date: Sat, 14 Jul 2012 21:12:17 +0000 (+0000) Subject: fix tar invocation and absolutise tarball path X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ec9210e002a02c473e947cc024e64ef216caba2;p=scpubgit%2FApp-EzPz.git fix tar invocation and absolutise tarball path --- diff --git a/bin/ezpz-create-test-ezmlm-install b/bin/ezpz-create-test-ezmlm-install index b766352..e30ab57 100755 --- a/bin/ezpz-create-test-ezmlm-install +++ b/bin/ezpz-create-test-ezmlm-install @@ -8,7 +8,9 @@ use IPC::System::Simple qw(run); die "Usage: ezpz-create-test-ezmlm-install ezmlm-source.tgz build-dir install-dir" unless @ARGV == 3; -my ($ezmlm_tarball, $build_dir_path, $install_to_path) = @ARGV; +my ($ezmlm_tarball_path, $build_dir_path, $install_to_path) = @ARGV; + +my $ezmlm_tarball = io->file(io->file($ezmlm_tarball_path)->rel2abs); my $orig_cwd = io->dir(cwd); @@ -18,7 +20,7 @@ my $install_to = io->dir(io->dir($install_to_path)->rel2abs); unless ($build_dir->exists) { $build_dir->mkpath; $build_dir->chdir; - run 'tar', '-xzf', $ezmlm_tarball; + run 'tar', 'xzf', $ezmlm_tarball; $orig_cwd->chdir; }