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

Diagnostic Steps

  • Please check the Shebang line of the script; eg:

    #!/usr/bin/bash.exe

    – this article applies if the path to bash.exe is in Unix format.

原因

Even though /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:

#!C:\msys64\usr\bin\bash.exe
最終更新日 2018 年 8 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.