hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/touch.rv
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-08 11:50:02 +0200
committerhachem <im@hachem.wtf>2026-10-08 11:50:02 +0200
commitef104148057ab98f80b1560405b5c02768457096 (patch)
tree47e75bc81aacb2e035e7cd43be9616b677b01d04 /gils/touch.rv
parent5f6deca073728d0dafa2cd47d841b28d54af3aaf (diff)
feat: colors + better ps1
Diffstat (limited to 'gils/touch.rv')
-rw-r--r--gils/touch.rv4
1 files changed, 2 insertions, 2 deletions
diff --git a/gils/touch.rv b/gils/touch.rv
index 84ecca8..f8e3e18 100644
--- a/gils/touch.rv
+++ b/gils/touch.rv
@@ -1,9 +1,9 @@
# dont touch my nono square
const context = env.ctx
-if context.argv:len() < 2 do puts("usage: touch <path>\n") end
+if context.argv:len() < 2 do fail("usage: touch <path>\n") end
else do
const path = expand_path(context.argv[1])
- if fs:is_dir(path) do puts("touch: #{path}: is a directory\n") end
+ if fs:is_dir(path) do fail("touch: #{path}: is a directory\n") end
else if fs:size(path) < 0 do fs:store(path, "") end
end