You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the shebang to either #!/bin/sh or #!/usr/bin/env bash the script magically worked. To keep compatbility with the existing script and also keep minimal distros like Alpine in mind, the fixt might be:
- #/bin/sh
+ #!/bin/sh
Background
Wikipedia also mentiones the special syntax for shebangs as #! so the current implementation might only work due to luck or amd variants having special fallbacks or syntax for first-line during execution.
The text was updated successfully, but these errors were encountered:
Observed Behavior
When I run
install-vmod -h
in a Docker container (e.g.varnish:7.5.0
) with--platform=linux/arm64
or similar it breaks with the following exception:Expected Behavior
I tracked it down to the shebang in https://github.com/varnish/toolbox/blob/master/install-vmod/install-vmod#L1 not being recognized somehow on ARM based docker images or runtimes.
Possible Solution
After changing the shebang to either
#!/bin/sh
or#!/usr/bin/env bash
the script magically worked. To keep compatbility with the existing script and also keep minimal distros like Alpine in mind, the fixt might be:Background
Wikipedia also mentiones the special syntax for shebangs as
#!
so the current implementation might only work due to luck or amd variants having special fallbacks or syntax for first-line during execution.The text was updated successfully, but these errors were encountered: