summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Chargois <hugo.chargois@free.fr>2021-05-10 20:47:00 +0200
committerGitHub <noreply@github.com>2021-05-10 11:47:00 -0700
commit913bbc0a494fb30df47bacafaafbb850fa6aeeaf (patch)
treeead1c9bab29884fc968ed38bf4f32812c081f00b
parent0838180ca0617df86673a24edd731fe70898cd35 (diff)
downloadmakeself-913bbc0a494fb30df47bacafaafbb850fa6aeeaf.tar.gz
Pass threads option to zstd compressor (#244)
-rwxr-xr-xmakeself.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/makeself.sh b/makeself.sh
index f9e63f7..5182630 100755
--- a/makeself.sh
+++ b/makeself.sh
@@ -521,6 +521,9 @@ pigz)
;;
zstd)
GZIP_CMD="zstd -$COMPRESS_LEVEL"
+ if test $THREADS -ne $DEFAULT_THREADS; then # Leave as the default if threads not indicated
+ GZIP_CMD="$GZIP_CMD --threads=$THREADS"
+ fi
GUNZIP_CMD="zstd -cd"
;;
pbzip2)