Open hjpotter92 opened 3 years ago
As for curl or wget: they should be using curl anyway as it has the widest compatibility.
As for stopping the whole script when an error is encountered: that is impossible when the recommended method of installation is piping input to your shell. see: https://www.seancassidy.me/dont-pipe-to-your-shell.html
However, they can (and should) check the output of each command individually.
I was setting up nanorc for my newer install on office machine, and I went with the installation script with curl.
However, since I hadn't installed wget on the system, the installation script failed:
The installer should switch between curl or wget accordingly, and it should fail as early as possible. In the output above, it can be seen that despite
wget
not being found, the installer still attempts to unzip/mv/rm as if previous stages were successful.