From aa422bf21aa4a2293eec4798c3adbb090e4701ed Mon Sep 17 00:00:00 2001 From: payonel Date: Sun, 24 Jul 2016 21:37:40 -0700 Subject: [PATCH] fix /bin/touch --- .../resources/assets/opencomputers/loot/openos/bin/touch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/opencomputers/loot/openos/bin/touch.lua b/src/main/resources/assets/opencomputers/loot/openos/bin/touch.lua index 7de1591a8..e88ee44de 100644 --- a/src/main/resources/assets/opencomputers/loot/openos/bin/touch.lua +++ b/src/main/resources/assets/opencomputers/loot/openos/bin/touch.lua @@ -31,7 +31,7 @@ for _,arg in ipairs(args) do if fs.isDirectory(path) then io.stderr:write(string.format("`%s' ignored: directories not supported\n", arg)) 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 io.stderr:write(string.format("touch: cannot touch `%s': permission denied\n", arg)) errors = 1