hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/touch.rv
blob: 84ecca864e8a189020e405f314e4e268c470a445 (plain)
1
2
3
4
5
6
7
8
9
# dont touch my nono square

const context = env.ctx
if context.argv:len() < 2 do puts("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
  else if fs:size(path) < 0 do fs:store(path, "") end
end