summaryrefslogtreecommitdiffstats
path: root/parallel_xz.sh
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-11-19 07:33:22 -0600
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-11-19 07:33:22 -0600
commit674c8a3857ba03f50e96132e338cf382a6ab2fae (patch)
treee2681dd0cb6b581a3a5de22a5b48d5a378d96ab9 /parallel_xz.sh
parent0c916adbd322d4e60887b1bf5bdb6f55b112a78c (diff)
downloadkernel-674c8a3857ba03f50e96132e338cf382a6ab2fae.tar.gz
kernel-674c8a3857ba03f50e96132e338cf382a6ab2fae.tar.xz
kernel-674c8a3857ba03f50e96132e338cf382a6ab2fae.zip
Linux v5.9.9
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
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..0d98eadeb 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 > 6 )); then
+ procgroup=6
+fi
+
# If told to use only one cpu:
test "$procgroup" || exec xargs -r xz
test "$procgroup" = 1 && exec xargs -r xz