#!/bin/bash # Package name NAME="intltool" # Get version number from launchpad API VERSION=$(curl -s -L https://api.launchpad.net/1.0/"$NAME"/releases | jq -r '.entries[-1].version') echo "$VERSION"