aur/nexus-oss/update.sh
nyyu 4cfdfade4a
Some checks failed
continuous-integration/drone/push Build is failing
ci: improve
2022-06-28 13:47:22 +02:00

13 lines
325 B
Bash
Executable File

#!/bin/sh
source ../.util.sh
ver=$(curl -s --head https://download.sonatype.com/nexus/3/latest-unix.tar.gz | grep location | cut -d' ' -f2)
ver=${ver%-unix*}
ver=${ver##*nexus-}
echo $ver
array=(${ver//-/ })
sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD
sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD
update_pkg