6 lines
388 B
Bash
Executable file
6 lines
388 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. ../.util.sh
|
|
|
|
ver=$(curl -Ls https://api.bell-sw.com/v1/liberica/releases/ | jq -r '.[] | select(.latest == true and .os == "linux" and .packageType == "tar.gz" and .architecture == "x86" and .bundleType == "jdk-lite" and .bitness == 64 and .latestInFeatureVersion == true) | .version')
|
|
echo "${ver}" | grep -Eq "^(\w|\+|\.)+$" && sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD
|