Created
July 12, 2023 12:58
-
-
Save directentis1/c0e8760610eb1d9b516e81a72997a141 to your computer and use it in GitHub Desktop.
This script use to install latest HTTPie from their github repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
httpie_latest_release_url=$(curl -s -H "Accept: application/vnd.github+json" https://api.github.com/repos/httpie/desktop/releases/latest | grep 'browser_' | cut -d\" -f4 | grep '.AppImage' | grep -v "arm64") && wget "$httpie_latest_release_url" -O httpie_latest.AppImage && chmod 755 httpie_latest.AppImage \ | |
&& ./httpie_latest.AppImage --appimage-extract \ | |
&& mv squashfs-root /home/ubuntu/apps/httpie \ | |
&& rm -f httpie_latest.AppImage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment