# HG changeset patch # User Matthew Wild # Date 1248616205 -3600 # Node ID 99ec02c5671679357fe4b2178b2d593032fb3048 # Parent 0718b469099df910777c9a2de6307061cee5048e Allow user or squishy file to specify custom shebang diff -r 0718b469099d -r 99ec02c56716 squish.lua --- a/squish.lua Sun Jul 26 14:47:05 2009 +0100 +++ b/squish.lua Sun Jul 26 14:50:05 2009 +0100 @@ -145,7 +145,11 @@ local f = io.open(out_fn, "w+"); if opts.executable then - f:write("#!/usr/bin/env lua\n"); + if opts.executable == true then + f:write("#!/usr/bin/env lua\n"); + else + f:write(opts.executable, "\n"); + end end if enable_debug then