diff --git a/packages/airgeddon/PKGBUILD b/packages/airgeddon/PKGBUILD index 71c8d7f3121..091c55dd305 100644 --- a/packages/airgeddon/PKGBUILD +++ b/packages/airgeddon/PKGBUILD @@ -2,7 +2,7 @@ # See COPYING for license details. pkgname=airgeddon -pkgver=v11.31.r0.g7335109 +pkgver=v11.40.r0.g48b1bb5 pkgrel=1 epoch=1 pkgdesc='Multi-use bash script for Linux systems to audit wireless networks.' @@ -25,7 +25,12 @@ sha512sums=('SKIP') pkgver() { cd $pkgname - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) } prepare() {