All pastes #36966 Raw Edit

Untitled

public text v1 · immutable
#36966 ·published 2006-01-16 13:41 UTC
rendered paste body
attr_functions["mtn:execute"] = 
   function(filename, value)
      if (io.open(filename) == nil) then
         return
      end
      io.close(filename)
      if (value == "true") then 
         make_executable(filename)
      end
   end