]> git.donarmstrong.com Git - bin.git/commitdiff
* switch update lists to bash
authorDon Armstrong <don@donarmstrong.com>
Fri, 17 Jun 2011 18:19:34 +0000 (18:19 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 17 Jun 2011 18:19:34 +0000 (18:19 +0000)
update_lists

index 213a86d9cfb9e84b8654275f947c6e39e3994b0b..b805644e4e884038471a1b53c8d13acb4e6e3533 100755 (executable)
@@ -9,8 +9,8 @@ find bugs  -maxdepth 1 -mindepth 1 -type d |perl -ne 'chomp; $a = $_; $b = $a; $
 # Remove dead lists
 #find ~/Maildir/lists/ -type d -maxdepth 1 -mindepth 1|xargs -n 1 -i sh -c '(( $(find "{}" -type f -iname "*" |wc -l) <= 1 )) && rm -rf "{}"'
 
-find ~/Maildir/lists/ -maxdepth 1 -mindepth 1 -type d|xargs -n 1 -i sh -c 'A={}; (( $(find $A -type f -name "*" -not -name "dovecot*" | wc -l) == 0 )) && rm -rf $A'
-find ~/Maildir/bugs/ -maxdepth 1 -mindepth 1 -type d|xargs -n 1 -i sh -c 'A={}; (( $(find $A -type f -name "*" -not -name "dovecot*" |wc -l) == 0 )) && rm -rf $A'
+find ~/Maildir/lists/ -maxdepth 1 -mindepth 1 -type d|xargs -n 1 -i bash -c 'A={}; (( $(find $A -type f -name "*" -not -name "dovecot*" | wc -l) == 0 )) && rm -rf $A'
+find ~/Maildir/bugs/ -maxdepth 1 -mindepth 1 -type d|xargs -n 1 -i bash -c 'A={}; (( $(find $A -type f -name "*" -not -name "dovecot*" |wc -l) == 0 )) && rm -rf $A'
 
 # Remove broken symlinks
 find . -maxdepth 1 -mindepth 1 -type l -iname '.*' -not -xtype d -print0 |xargs -0 rm -f
\ No newline at end of file