diff --git a/zapp/compiler/__main__.py b/zapp/compiler/__main__.py index d563b4a..facd434 100644 --- a/zapp/compiler/__main__.py +++ b/zapp/compiler/__main__.py @@ -343,7 +343,11 @@ def main(): ) with open(opts.output, "w") as zapp: - shebang = "#!" + manifest["shebang"] + "\n" + shebang = manifest["shebang"] + if not shebang.endswith("\n"): + shebang = shebang + "\n" + if not shebang.startswith("#!"): + shebang = "#!" + shebang zapp.write(shebang) # Now we're gonna build the zapp from the manifest