build-image
build-image copied to clipboard
buildbot shell errors with "/bin/bash^M: bad interpreter: No such file or directory"
Describe the bug
I've followed the instructions from the README using WSL 2 to install Docker in Ubuntu.
I cloned this repository (build-image) from within WSL, not through Windows.
The target project directory however is a mount in Ubuntu that points to the Windows filesystem.
I already had to use dos2unix to be able to run the ./test-tools/start-image.sh
which otherwise showed me the same error. Unfortunately i can't use this command or install this tool in the buildbot shell.
This is the output:
buildbot@5c4d253a1237:/$ /opt/build-bin/build npm run build
bash: /opt/build-bin/build: /bin/bash^M: bad interpreter: No such file or directory
It's totally possible, if not likely, that it's an issue on my side and not the project, but i've read the README thoroughly and can't figure it out. Any help is highly appreciated.
To Reproduce
Steps to reproduce the behavior:
- Follow instructions on README using Ubuntu in WSL
@FunctionDJ did you manage to resolve this issue? Similarly stuck - tried to use sed
to remove the carriage returns but got a permission denied.
@FunctionDJ did you manage to resolve this issue? Similarly stuck - tried to use
sed
to remove the carriage returns but got a permission denied.
Had to manually change the EOL encoding of run_build.sh
and run_build_functions.sh
to Unix in notepad++ which did the trick.