Files
intltool/check-version.sh
T

10 lines
202 B
Bash

#!/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"