Fix purge_tombstone for the brave new world of secure command execution

This commit is contained in:
Matt Palmer 2017-03-22 10:27:07 +11:00
parent 1cd14ef3aa
commit da7a44064b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module FileStore
end end
def purge_tombstone(grace_period) def purge_tombstone(grace_period)
Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type f -delete') Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type', 'f', '-delete')
end end
def get_path_for(type, upload_id, sha, extension) def get_path_for(type, upload_id, sha, extension)