I have a bash script called bashScript.sh .
I need to run bashScript.sh inside an ant script on windows (cygwin) and unix / linux.
How can I do it?
I tried this and several other solutions using an environment variable, but there is no env.OSTYPE . And using ...
<exec executable="/bin/bash" failonerror="true"> <arg value="bashScript.sh"/> </exec>
... does not work on windows (cygwin) because cygwin does not find \bin\bash .
Thank you if you need more information let me know.
source share