10 lines
285 B
Bash
Executable file
10 lines
285 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. APKBUILD
|
|
items="$(curl -s "https://release-monitoring.org/api/v2/packages/?name=$pkgname&distribution=Alpine" | jq .total_items)"
|
|
|
|
if [ "$items" = 0 ]; then
|
|
echo "Package $pkgname is not tracked by Anitya."
|
|
echo "Add it here: https://release-monitoring.org/"
|
|
exit 1
|
|
fi
|