Files
perl-json/check-version.sh
T
2026-03-13 17:47:45 +02:00

10 lines
200 B
Bash

#!/bin/bash
# Github repository
MODULE="JSON"
# Get version using the MetaCPAN Rest API
VERSION=$(curl -s -L https://fastapi.metacpan.org/download_url/"$MODULE" | jq -r '.version')
echo "$VERSION"