squish: Fix generation of custom shebang lua5.2

Fri, 17 Mar 2023 11:01:19 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 17 Mar 2023 11:01:19 +0000
branch
lua5.2
changeset 98
61085789b12b
parent 97
808fd9673669
child 99
2b6416334a25

squish: Fix generation of custom shebang

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Fri Mar 17 11:00:22 2023 +0000
+++ b/squish.lua	Fri Mar 17 11:01:19 2023 +0000
@@ -237,7 +237,7 @@
 	if opts.executable == true then
 		f:write("#!/usr/bin/env lua\n");
 	else
-		f:write(opts.executable, "\n");
+		f:write("#!"..opts.executable, "\n");
 	end
 end
 

mercurial