Oubli d'une variable path à mettre entre ""

This commit is contained in:
Axel ROGER 2012-10-15 10:34:23 +00:00
parent 3320706583
commit c823c37fde
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ mysql_query "SELECT id, quote(replace(path,'!','\\!')) FROM mailbox WHERE mail_a
if [ -d "$path" ] ; then if [ -d "$path" ] ; then
$ionice rm -rf "$path" && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" $ionice rm -rf "$path" && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';"
# Do the rm again in case of newly added file during delete. Should not be usefull # Do the rm again in case of newly added file during delete. Should not be usefull
test -d "$path" && $ionice rm -rf $path test -d "$path" && $ionice rm -rf "$path"
else else
mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';"
fi fi