summaryrefslogtreecommitdiffstats
path: root/parallel_xz.sh
diff options
context:
space:
mode:
Diffstat (limited to 'parallel_xz.sh')
-rwxr-xr-xparallel_xz.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/parallel_xz.sh b/parallel_xz.sh
index bc08a548d..07013f149 100755
--- a/parallel_xz.sh
+++ b/parallel_xz.sh
@@ -16,6 +16,11 @@ while test "$#" != 0; do
shift
done
+#This seems to cause problems with large numbers
+if (( $procgroup > 12 )); then
+ procgroup=12
+fi
+
# If told to use only one cpu:
test "$procgroup" || exec xargs -r xz
test "$procgroup" = 1 && exec xargs -r xz