Skip to content

Commit

Permalink
added ENV var to exclude AppleDouble files when pax is run
Browse files Browse the repository at this point in the history
Fixes tony-o#72
details tony-o#72
  • Loading branch information
masukomi committed Dec 21, 2022
1 parent e6c0862 commit df97430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Fez/Util/Pax.rakumod
Expand Up @@ -12,11 +12,12 @@ method bundle($location) {
my $regex = $_.split('*').map({$_ eq '' ?? '.*' !! "'$_'"}).join('');
rx/ <$regex> /
})
!! ();
!! ();
my @manifest = ls('.'.IO, -> $fn {
$fn.basename.substr(0,1) ne '.'
&& !any(@ignores.map({ $fn ~~ $_ })).so
});
%*ENV<COPYFILE_DISABLE>='bad_apple_no_cookie_for_you'; #exclude macOS's AppleDouble data files - issue 72
my $tarczf = run 'pax', '-w', '-z', '-s', '#^#dist/#', '-f', $location, |@manifest, :err, :out;
die 'Failed to pax: ' ~ $tarczf.err.slurp.trim unless $tarczf.exitcode == 0;
return False unless $location.IO.f;
Expand Down

0 comments on commit df97430

Please sign in to comment.