aur/nexus-oss/update.sh
nyyu 53393ed8fe
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: update build
2023-03-18 13:43:38 +01:00

11 lines
304 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-}
array=(${ver//-/ })
sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD
sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD