diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-06-23 09:20:21 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-06 18:23:46 -0600 |
commit | a893cc98b5d49f092bcfc357c2e0ac23149f9cbd (patch) | |
tree | 7194a524b9236206016f98ec9397e13efa12447f /abuild.in | |
parent | c3fd02f0227f432a225a19a9ffad658e7446a565 (diff) | |
download | abuild-a893cc98b5d49f092bcfc357c2e0ac23149f9cbd.tar.gz abuild-a893cc98b5d49f092bcfc357c2e0ac23149f9cbd.tar.bz2 abuild-a893cc98b5d49f092bcfc357c2e0ac23149f9cbd.tar.xz abuild-a893cc98b5d49f092bcfc357c2e0ac23149f9cbd.zip |
abuild: more tar portability fixes
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -450,15 +450,11 @@ default_unpack() { tar -C "$srcdir" --lzip -xf "$s" || return 1;; *.tar.lzma) msg "Unpacking $s..." - unlzma -T 0 -c "$s" | tar -C "$srcdir" -x \ + unlzma -T 0 -c "$s" | tar -C "$srcdir" -f - -x \ || return 1;; *.tar.xz) msg "Unpacking $s..." - local threads_opt - if [ $(readlink -f $(command -v unxz)) != "/bin/busybox" ]; then - threads_opt="--threads=0" - fi - unxz $threads_opt -c "$s" | tar -C "$srcdir" -x || return 1;; + unxz --threads=0 -c "$s" | tar -C "$srcdir" -f - -x || return 1;; *.zip) msg "Unpacking $s..." unzip -n -q "$s" -d "$srcdir" || return 1;; |