summaryrefslogtreecommitdiffstats
path: root/parallel_xz.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2020-11-12 20:50:22 +0100
committerThorsten Leemhuis <fedora@leemhuis.info>2020-11-12 20:50:22 +0100
commitc4211c9c342d0421d83765ca57fc36e030be4b5f (patch)
tree817aa50779315944427a05027a5a5ab7d47107ec /parallel_xz.sh
parenta223d454774cc181f1229969af0895d9242ffb50 (diff)
parentf1879fd534d196a61d446b0d3f70bd3e804390df (diff)
downloadkernel-c4211c9c342d0421d83765ca57fc36e030be4b5f.tar.gz
kernel-c4211c9c342d0421d83765ca57fc36e030be4b5f.tar.xz
kernel-c4211c9c342d0421d83765ca57fc36e030be4b5f.zip
Merge remote-tracking branch 'origin/master' into rawhide-user-thl-vanilla-fedorakernel-5.10.0-0.rc3.20201112git3d5e28bff7ad.73.vanilla.1.fc33
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