From ef104148057ab98f80b1560405b5c02768457096 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 8 Oct 2026 11:50:02 +0200 Subject: feat: colors + better ps1 --- gils/touch.rv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gils/touch.rv') 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 \n") end +if context.argv:len() < 2 do fail("usage: touch \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 -- cgit v1.3