From dbbb506fa57f0d928c865c82269d194a22ce9324 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Thu, 18 Nov 2021 11:57:11 +1100 Subject: [PATCH] ci(buildkite): fix missing commit in build-info for authelia aur package (#2609) --- .buildkite/steps/aurhelper.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.buildkite/steps/aurhelper.sh b/.buildkite/steps/aurhelper.sh index 99560429a..274ff7c70 100755 --- a/.buildkite/steps/aurhelper.sh +++ b/.buildkite/steps/aurhelper.sh @@ -7,12 +7,12 @@ git clone ssh://aur@aur.archlinux.org/"${PACKAGE}".git cd "${PACKAGE}" || exit if [[ "${PACKAGE}" != "authelia-git" ]]; then - sed -i -e "/pkgver=/c pkgver=${BUILDKITE_TAG//v/}" \ - -e '/pkgrel=/c pkgrel=1' PKGBUILD && \ + sed -i -e "/^pkgver=/c pkgver=${BUILDKITE_TAG//v/}" \ + -e '/^pkgrel=/c pkgrel=1' PKGBUILD && \ docker run --rm -v $PWD:/build authelia/aurpackager bash -c "cd /build && updpkgsums" else - sed -i -e "/pkgver=/c pkgver=${GITTAG}" \ - -e '/pkgrel=/c pkgrel=1' PKGBUILD + sed -i -e "/^pkgver=/c pkgver=${GITTAG}" \ + -e '/^pkgrel=/c pkgrel=1' PKGBUILD fi docker run --rm -v $PWD:/build authelia/aurpackager bash -c "cd /build && makepkg --printsrcinfo >| .SRCINFO" && \