For now, scripts should force the usage of Bash startScripts { doLast { unixScript.text = unixScript.text.replaceAll("#!/usr/bin/env sh", "#!/usr/bin/env bash") } } Fix suggested by Vincenzo Forchì @ gitter