mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
fix /bin/touch
This commit is contained in:
parent
367f268662
commit
aa422bf21a
@ -31,7 +31,7 @@ for _,arg in ipairs(args) do
|
|||||||
if fs.isDirectory(path) then
|
if fs.isDirectory(path) then
|
||||||
io.stderr:write(string.format("`%s' ignored: directories not supported\n", arg))
|
io.stderr:write(string.format("`%s' ignored: directories not supported\n", arg))
|
||||||
elseif fs.exists(path) or not options.c then
|
elseif fs.exists(path) or not options.c then
|
||||||
local f, reason = io.open(path, "w")
|
local f, reason = io.open(path, "a")
|
||||||
if not f then
|
if not f then
|
||||||
io.stderr:write(string.format("touch: cannot touch `%s': permission denied\n", arg))
|
io.stderr:write(string.format("touch: cannot touch `%s': permission denied\n", arg))
|
||||||
errors = 1
|
errors = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user