From 94ac3330dd3a42958ad5d9606ec254bc112936bf Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Wed, 21 Oct 2020 10:05:43 +0200 Subject: libmakepkg: compress: fix tar extension With commit 74aacf44958e1343b910b3fbdcf753393857f070 creating uncompressed .tar packages fails. -> Compressing package... /usr/share/makepkg/util/compress.sh: line 70: COMPRESS.TAR[@]: invalid variable name bsdtar: Write error Empty the '$ext' variable for the '.tar' extension in get_compress_command() to fix this. We would fallback to cat for 'tar' anyways. Signed-off-by: Michael Straube Signed-off-by: Allan McRae --- scripts/libmakepkg/util/compress.sh.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/libmakepkg') diff --git a/scripts/libmakepkg/util/compress.sh.in b/scripts/libmakepkg/util/compress.sh.in index d35a01fa..ab3b1e6e 100644 --- a/scripts/libmakepkg/util/compress.sh.in +++ b/scripts/libmakepkg/util/compress.sh.in @@ -65,6 +65,9 @@ get_compression_command() { esac ext=${ext#*.tar.} + # empty the variable for plain tar archives so we fallback to cat + ext=${ext#*.tar} + if [[ -n $ext ]]; then extarray="COMPRESS${ext^^}[@]" resolvecmd=("${!extarray}") -- cgit v1.2.3-70-g09d2