Skip to content

Commit 81893e5

Browse files
committed
Addendum to a634720: Check that the cef dir exists
1 parent fd8d154 commit 81893e5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

utils/buildactions/install_cef.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ newaction {
145145
end
146146

147147
-- Delete old CEF files
148-
if not os.rmdir(CEF_PATH) then
149-
errormsg("ERROR: Could not delete cef folder")
150-
os.exit(1)
151-
return
148+
if os.isdir(CEF_PATH) then
149+
if not os.rmdir(CEF_PATH) then
150+
errormsg("ERROR: Could not delete cef folder")
151+
os.exit(1)
152+
return
153+
end
152154
end
153155

154156
if not os.mkdir(CEF_PATH) then

utils/buildactions/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function os.expanddir_wildcard(from, to)
8484
os.exit(1)
8585
return
8686
end
87-
87+
8888
if not os.rmdir(dir) then
8989
errormsg("ERROR: Couldn't remove directory", ("\nTried to remove %s"):format(dir))
9090
os.exit(1)

0 commit comments

Comments
 (0)