two bugfixes
Annoying dangers of testing in one fork and committing upstream (where it isn't used yet).
This commit is contained in:
parent
bcd7f6b598
commit
0016d668bc
5
app.lua
5
app.lua
|
@ -444,7 +444,7 @@ function App.disable_tests()
|
||||||
return ok, err
|
return ok, err
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
App.read =
|
App.read_file =
|
||||||
function(path)
|
function(path)
|
||||||
if not is_absolute_path(path) then
|
if not is_absolute_path(path) then
|
||||||
return --[[status]] false, 'Please use an unambiguous absolute path.'
|
return --[[status]] false, 'Please use an unambiguous absolute path.'
|
||||||
|
@ -467,7 +467,7 @@ function App.disable_tests()
|
||||||
return ok, err
|
return ok, err
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
App.write =
|
App.write_file =
|
||||||
function(filename, contents)
|
function(filename, contents)
|
||||||
if not is_absolute_path(path) then
|
if not is_absolute_path(path) then
|
||||||
return --[[status]] false, 'Please use an unambiguous absolute path.'
|
return --[[status]] false, 'Please use an unambiguous absolute path.'
|
||||||
|
@ -478,6 +478,7 @@ function App.disable_tests()
|
||||||
end
|
end
|
||||||
f:write(contents)
|
f:write(contents)
|
||||||
f:close()
|
f:close()
|
||||||
|
return --[[status]] true
|
||||||
end
|
end
|
||||||
App.files = nativefs.getDirectoryItems
|
App.files = nativefs.getDirectoryItems
|
||||||
App.mkdir = nativefs.createDirectory
|
App.mkdir = nativefs.createDirectory
|
||||||
|
|
Loading…
Reference in New Issue