DopplerHQ / cli

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

Print error if install.sh fails due to lack of write perms #263

Closed Piccirello closed 2 years ago

Piccirello commented 2 years ago

In the event that install.sh or doppler update fails due to a lack of write perms, we now print a more actionable error.

$ doppler update
Updating...
Error: update failed due to improper permissions
Please re-run with `sudo` or as an admin
Doppler Error: exit status 2

$ ./scripts/install.sh
Downloading Doppler CLI
Installing...
Unable to write to bin directory; please re-run with `sudo` or as an admin

Closes ENG-3292.

rgmvisser commented 2 years ago

Great fix!