I run Windows 10 bash.exe to run the bash script. I face a wired situation that if I add anything below gradle fatJar
in bash it throws an error.
Bash script:(Not working)
#!/usr/bin/env bash
rm -rf build
gradle fatJar
echo 'Success'
' not found in root project 'project_name'. Some candidates are: 'fatJar'.
Bash script:(Working)
#!/usr/bin/env bash
rm -rf build
gradle fatJar
Why I cannot add anything below gradle fatJar
? This happens only in Windows 10 bash. In mac, both work fine.