DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

Allow MINGW64 environments to update #391

Closed watsonian closed 1 year ago

watsonian commented 1 year ago

We added support for installing the CLI via the shell script installation method under Git Bash in #325. That works great, but when you try updating via doppler update after doing that, you're greeted with a this command is not yet implemented for your operating system error. This update adds an additional check that looks for a value of MINGW64 in the MSYSTEM environment variable (which Git Bash sets automatically) and if it finds that allows for updates (the typical Go OS checks return a generic "windows" for Git Bash, which is why we had to resort to the environment variable). It also swaps to executing the install script inside of sh.