As a workaround I’ve copied the script to another ...
# build-tools
n
As a workaround I’ve copied the script to another file and fixed that (made the interpreter /bin/sh, ran dos2unix on it, replaced$* with “$@")