Merge pull request #1167 from Frenzie/master

Change rm invocation from rm -r to rm -rf
pull/1168/head v2014.11.14-nightly
Huang Xin 10 years ago
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…
Cancel
Save