- Add error checking for failed downloads/API requests using set -e
- Use proper GitHub API parsing instead of fragile sed extraction
- Better architecture/OS detection and mapping
- Add user feedback messages and progress reporting
- Ensure target directory creation before installation
- Verify successful extraction before installation
This enhances reliability, handles edge cases better, and improves the
user experience during installation/updates.
The installation method used up until now would always leave one copy of the lazydocker binary in the extraction directory. This copy is not actually needed after installation, so it should be removed. TheAxelander also pointed this out in his comment at https://github.com/jesseduffield/lazydocker/issues/270#issuecomment-1042983635.
This commit changes that behaviour and makes the install script cleanup after itself.