From 5d4a723a5f157c0ed38a348099a600d1d21c3c2b Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 6 Oct 2026 12:49:46 +0200 Subject: feat: gils core utils and other shit --- gils/touch.rv | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gils/touch.rv (limited to 'gils/touch.rv') diff --git a/gils/touch.rv b/gils/touch.rv new file mode 100644 index 0000000..2dd0d8c --- /dev/null +++ b/gils/touch.rv @@ -0,0 +1,9 @@ +# dont touch my nono square + +const context = env.ctx +if context.argv:len() < 2 do puts("usage: touch \n") end +else do + const path = abspath(context.argv[1]) + if fs:is_dir(path) do puts("touch: #{path}: is a directory\n") end + else if fs:size(path) < 0 do fs:store(path, "") end +end -- cgit v1.3