Skip to content

Instantly share code, notes, and snippets.

@joaorua
joaorua / update_ferdi.sh
Created Jan 9, 2022
Upgrading an existing Ferdi Installation RPM (Tested in Fedora 35)
View update_ferdi.sh
#!/bin/sh
CURRENT_VERSION=$(rpm -qa |grep ferdi|cut -f2 -d '-')
LATEST_VERSION=$(curl -s -# https://api.github.com/repos/getferdi/ferdi/releases/latest | jq --raw-output '.tag_name' | cut -c 2-)
if [ "$LATEST_VERSION" == "$CURRENT_VERSION" ]; then
echo "Latest Ferdi already installed."
else
echo "Upgrading to Ferdi ${LATEST_VERSION}"
RPM_URL=$(curl -s -# https://api.github.com/repos/getferdi/ferdi/releases/latest | jq --raw-output -r '.assets[] |select(.name|contains("rpm"))|.browser_download_url')
View keybase.md

Keybase proof

I hereby claim:

  • I am joaorua on github.
  • I am joaorua (https://keybase.io/joaorua) on keybase.
  • I have a public key whose fingerprint is 256E D086 5722 2192 B072 F0A5 CE46 F9BF 627E D7CB

To claim this, I am signing this object: