ci: improve
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nyyu 2022-06-28 10:30:05 +02:00
parent 49703433c0
commit 4cfdfade4a
18 changed files with 133 additions and 102 deletions

View file

@ -2,7 +2,7 @@
source ../.util.sh
ver=`curl -s --head https://download.sonatype.com/nexus/3/latest-unix.tar.gz | grep location | cut -d' ' -f2`
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
@ -10,6 +10,4 @@ array=(${ver//-/ })
sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD
sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD
update_pkg
rm nexus-*.tar.gz
update_pkg