From 2870157c78a84d6628ce09f505024d359374cd67 Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 26 Jul 2021 20:33:19 +0200 Subject: [PATCH] make update function global --- nexus-oss/update.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/nexus-oss/update.sh b/nexus-oss/update.sh index a7053d2..5fcbaf8 100755 --- a/nexus-oss/update.sh +++ b/nexus-oss/update.sh @@ -1,5 +1,7 @@ #!/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-} @@ -7,14 +9,5 @@ echo $ver array=(${ver//-/ }) sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD -updpkgsums > /dev/null 2>&1 -if [ $? -eq 0 ] -then - makepkg --printsrcinfo > .SRCINFO - git add .SRCINFO PKGBUILD - git commit -m "nexus: update to $ver" > /dev/null 2>&1 - if [ $? -eq 0 ] - then - git push - fi -fi + +update_pkg