2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

Merge pull request #1167 from Frenzie/master

Change rm invocation from rm -r to rm -rf
This commit is contained in:
Huang Xin 2014-11-14 08:58:52 +08:00
commit 5e24e18d3e

View File

@ -242,7 +242,7 @@ end
function FileManager:deleteFile(file) function FileManager:deleteFile(file)
local InfoMessage = require("ui/widget/infomessage") local InfoMessage = require("ui/widget/infomessage")
DEBUG("File to remove", util.realpath(file)) DEBUG("File to remove", util.realpath(file))
local rm = util.execute("/bin/rm", "-r", util.realpath(file)) local rm = util.execute("/bin/rm", "-rf", util.realpath(file))
DEBUG("rm status", rm) DEBUG("rm status", rm)
if rm == 0 then if rm == 0 then
UIManager:show(InfoMessage:new{ UIManager:show(InfoMessage:new{