Skip to content

Commit

Permalink
Use short option for tar --list
Browse files Browse the repository at this point in the history
OpenBSD tar doesn't support a --list argument, so switch to using
the short option -h which should be supported on gnutar, bsdtar,
and openbsd tar.
  • Loading branch information
ugexe committed Aug 10, 2023
1 parent 940d843 commit 924f612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zef/Service/Shell/tar.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Zef::Service::Shell::tar does Extractor {
react {
my $cwd := $archive-file.parent;
my $ENV := %*ENV;
my $proc = Zef::zrun-async('tar', '--list', '-f', $archive-file.basename);
my $proc = Zef::zrun-async('tar', '-t', '-f', $archive-file.basename);
whenever $proc.stdout(:bin) { $output.append($_) }
whenever $proc.stderr(:bin) { }
whenever $proc.start(:$ENV, :$cwd) { $passed = $_.so }
Expand Down

0 comments on commit 924f612

Please sign in to comment.