When opam init is called with -cygwin-local-install flag it populates the PATH with a newly installed Cygwin bash instance which changes how the scripts are executed afterwards
this can easily break scripts that are executed after (especially because Cygwin has its own rules for linebreaks)
Here is an example of this github actions run which uses setup-ocaml and runnings scripts with shell: bash
Before opam init

After opam init
