Skip to content

Instantly share code, notes, and snippets.

@directentis1
Created July 12, 2023 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save directentis1/c0e8760610eb1d9b516e81a72997a141 to your computer and use it in GitHub Desktop.
Save directentis1/c0e8760610eb1d9b516e81a72997a141 to your computer and use it in GitHub Desktop.
This script use to install latest HTTPie from their github repository.
#!/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