Unable to find bash.exe executable when using MinGW
When running a Bash script on a 64-bit Windows 10 machine with MinGW installed, the following error appears in the job log:
Unable to find executable at /usr/bin/bash.exe. Will try to run it anyway.
- Windows 10
- MinGW 64
- Bash Script
Please check the Shebang line of the script; eg:
– this article applies if the path to
bash.exeis in Unix format.
/usr/bin/bash exists, it cannot be found by the agent's Shell interpreter.
Change the Shebang line to use the Windows style path to
bash.exe. For example: