Ca peut paratre ridicule, mais rm prend un nombre limit d'arguments.
darcs-hash:20060720102538-68412-41e3de13ba58271ae7841431c3f0ff7733a123a6.gz
This commit is contained in:
parent
e7e4f7e307
commit
30eaee988a
1 changed files with 1 additions and 1 deletions
|
@ -8,6 +8,6 @@ BACKUP=/home/$USER/Mail/.Backup-`date -u +%Y%m%d-%H%M%S`
|
|||
set -e
|
||||
test ! -a $BACKUP
|
||||
cp -a $MAIL $BACKUP
|
||||
rm -f $MAIL/{cur,tmp,new}/* || true
|
||||
echo $MAIL/{cur,tmp,new}/* | xargs -n 20 rm -f || true
|
||||
find $BACKUP -type f | xargs chmod 600
|
||||
find $BACKUP -type d | xargs chmod 700
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue