We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f606e56 + 99ba8a0 commit 10c55baCopy full SHA for 10c55ba
flow/util/makeIssue.sh
@@ -82,7 +82,17 @@ rm -f ${VARS_BASENAME}.sh ${VARS_BASENAME}.tcl ${VARS_BASENAME}.gdb || true
82
$DIR/generate-vars.sh ${VARS_BASENAME}
83
84
echo "Archiving issue to $1_${ISSUE_TAG}.tar.gz"
85
-tar --ignore-failed-read -czhf $1_${ISSUE_TAG}.tar.gz \
+# if pigz is installed, use it instead of gzip
86
+if command -v pigz &> /dev/null; then
87
+ COMPRESS=pigz
88
+else
89
+ COMPRESS=gzip
90
+fi
91
+
92
+echo "Using $COMPRESS to compress tar file"
93
94
+tar --use-compress-program=${COMPRESS} \
95
+ --ignore-failed-read -chf $1_${ISSUE_TAG}.tar.gz \
96
--transform="s|^|$1_${ISSUE_TAG}/|S" \
97
--transform="s|^$1_${ISSUE_TAG}${FLOW_HOME}/|$1_${ISSUE_TAG}/|S" \
98
$LOG_DIR \
0 commit comments