# HG changeset patch # User Matthew Wild # Date 1354033518 28800 # Node ID 2322f7932064ac00077e2233c79d1791357b09c5 # Parent 347ac1733354953956b3620a5d711666bcc7ff6d Remove shebangs from modules, if any (thanks Markus Stenberg) diff -r 347ac1733354 -r 2322f7932064 squish.lua --- a/squish.lua Fri Jul 13 17:14:22 2012 +0100 +++ b/squish.lua Tue Nov 27 08:25:18 2012 -0800 @@ -236,6 +236,7 @@ end end if data then + data = data:gsub("^#[^\r\n]*\r?\n", ""); -- Remove shebang if any (or we can't concat) if not opts.debug then f:write("package.preload['", modulename, "'] = (function (...)\n"); f:write(data);