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:
commit
5e24e18d3e
@ -242,7 +242,7 @@ end
|
||||
function FileManager:deleteFile(file)
|
||||
local InfoMessage = require("ui/widget/infomessage")
|
||||
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)
|
||||
if rm == 0 then
|
||||
UIManager:show(InfoMessage:new{
|
||||
|
Loading…
Reference in New Issue
Block a user