edgedb-cli
edgedb-cli copied to clipboard
curl-based installer is not idempotent
- EdgeDB Version:
- EdgeDB CLI Version: 3.3.0+071876c
- OS Version: Ubuntu 23.04 "Lunar Lobster"
Steps to Reproduce:
- View the instructions found at https://www.edgedb.com/install
- curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com > install-edgedb.sh
- run install-edgedb.sh to install the CLI
- run install-edgedb again "edgedb: error".
Other options that would be better:
- The installer could be idempotent
- If you try to run it on top of an install it could refuse and tell the user that the program already exists
- Ask if the user is trying to reinstall and overwrite the existing install?
- Require the user to uninstall before running the script.