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