squish.lua

changeset 86
2322f7932064
parent 83
ff14c066a643
child 87
f39aceada1ad
--- 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);

mercurial