chainguard-dev/rules_apko

Bad #! path in apko_run shell wrapper

Opened this issue · 0 comments

LAUNCHER_TEMPLATE = """
#!#!/usr/bin/env sh

Note double #!#!. This causes the script to fail with "external/rules_apko/apko/_apko_run.sh: 11: Bad substitution"

In addition, the """<newline>#!...""" creates a bad newline before the #!.

I think this should be:

LAUNCHER_TEMPLATE = """\
#!/usr/bin/env sh
...
"""