summaryrefslogtreecommitdiffstats
path: root/parallel_xz.sh
diff options
context:
space:
mode:
Diffstat (limited to 'parallel_xz.sh')
-rwxr-xr-xparallel_xz.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/parallel_xz.sh b/parallel_xz.sh
index 0d98eadeb..f1b6cdd15 100755
--- a/parallel_xz.sh
+++ b/parallel_xz.sh
@@ -16,11 +16,6 @@ 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
@@ -28,4 +23,4 @@ test "$procgroup" = 1 && exec xargs -r xz
# xz has some startup cost. If files are really small,
# this cost might be significant. To combat this,
# process several files (in sequence) by each xz process via -n 16:
-exec xargs -r -n 16 -P $procgroup xz
+exec xargs -r -n 16 -P "$procgroup" xz