2021-05-19 09:31:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-07-26 20:33:19 +02:00
|
|
|
source ../.util.sh
|
|
|
|
|
2021-05-19 09:31:28 +02:00
|
|
|
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
|
2021-07-26 20:33:19 +02:00
|
|
|
|
|
|
|
update_pkg
|