How do I get exit code of script run with mintty.exe?
mintty does not return any error code, what you can do is :
mintty.exe -e bash -c "C:\some_path\some_bash_script.sh; echo $? > /c/temp/return-code"
and test the content of C:\temp\return-code