Permalink
Browse files

added --gnu switch to parallel for compatibility on ubuntu, debian, a…

…nd fedora (aesiris)
  • Loading branch information...
1 parent fa0d518 commit 28b41b653d0351e3036351ca6a485409070d69cb @graysky2 committed Feb 15, 2013
Showing with 6 additions and 3 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −1 Makefile
  3. +1 −2 common/profile-cleaner
View
@@ -1,3 +1,7 @@
+v1.99
+15-Feb-2013
+Added --gnu switch to parallel for compatibility on ubuntu, debian, and fedora (aesiris).
+
v1.98
14-Feb-2013
Switch to Makefile paradigm for wider support on other distros.
View
@@ -1,4 +1,4 @@
-VERSION = 1.98
+VERSION = 1.99
PN = profile-cleaner
PREFIX ?= /usr
View
@@ -59,8 +59,7 @@ do_clean_parallel () {
[[ ${#toclean[@]} -eq 0 ]] && cleanedsize=0 && return 1
bsize=$(du -b -c "${toclean[@]}" | tail -n 1 | cut -f 1)
- #SHELL=/bin/bash parallel -k do_clean ::: "${toclean[@]}" 2>/dev/null
- SHELL=/bin/bash parallel -k do_clean ::: "${toclean[@]}"
+ SHELL=/bin/bash parallel --gnu -k do_clean ::: "${toclean[@]}" 2>/dev/null
asize=$(du -b -c "${toclean[@]}" | tail -n 1 | cut -f 1)
cleanedsize=$(echo "scale=2; ($bsize-$asize)/1048576" | bc)

0 comments on commit 28b41b6

Please sign in to comment.