aur/nexus-oss/update.sh
nyyu fefe6e35cc
All checks were successful
continuous-integration/drone/push Build is passing
remove files on check update
2021-11-14 09:09:22 +01:00

16 lines
344 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
rm nexus-*.tar.gz