Fix: tolerate #! prefixed shebangs
This commit is contained in:
parent
72f82e0ace
commit
1bf3826f54
1 changed files with 5 additions and 1 deletions
|
@ -343,7 +343,11 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(opts.output, "w") as zapp:
|
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)
|
zapp.write(shebang)
|
||||||
|
|
||||||
# Now we're gonna build the zapp from the manifest
|
# Now we're gonna build the zapp from the manifest
|
||||||
|
|
Loading…
Reference in a new issue