diff options
| author | Michael Forney <mforney@mforney.org> | 2018-11-13 15:06:05 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-11 12:20:37 -0700 |
| commit | e5bb6756c125c1b2d70e63aa90b0d1485300f062 (patch) | |
| tree | c0cea25006ecc2c4ed9e5696d447d5603187d0d6 /pkg/git/fetch.sh | |
| parent | 01b862af3be3cde43223e4b900f0025f70aaaac2 (diff) | |
Allow overriding pax command with PAXREAD
Most systems do not have pax installed by default, or it is not available
at all. However, since we are relying on the -s flag for member name
substitution, we can't just use a tar command that works everywhere.
Instead, support the environment variable PAXREAD to specify the command
to use in place of `pax -r`. Since bsdtar from libarchive supports -s,
we can set PAXREAD='bsdtar -xf -'.
Diffstat (limited to 'pkg/git/fetch.sh')
| -rw-r--r-- | pkg/git/fetch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/git/fetch.sh b/pkg/git/fetch.sh index 289daf1f..48edce2c 100644 --- a/pkg/git/fetch.sh +++ b/pkg/git/fetch.sh @@ -15,4 +15,4 @@ if ! sha256sum -c sha256 2>/dev/null ; then fi read -r checksum archive <sha256 -xzcat "$archive" | pax -r -s ',^\.,src/man,' +xzcat "$archive" | ${PAXREAD:-pax -r} -s ',^\.,src/man,' |
