diff --git a/build.sh b/build.sh index 5fc0368..a20986b 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash +x # shellcheck disable=SC3044,SC3009 . .util.sh @@ -22,7 +22,7 @@ build() { epoch=${epoch}: fi - if pacman -Si "${name}" | grep -v nyyu | grep -c -E '^Repository' &>/dev/null; then + if pacman -Si "${name}" || true | grep -v nyyu | grep -c -E '^Repository' &>/dev/null; then echo "WARN: Found ${name} in arch repo" fi @@ -52,7 +52,7 @@ for d in */; do fi if ! grep -c 'pkgver()' PKGBUILD >/dev/null; then - repo=$(grep -oPm 1 'github\.com\/\K([a-z0-9]|-)+\/([a-z0-9]|-)+' .SRCINFO) + repo=$(grep -oPm 1 'github\.com\/\K(\w|-)+\/(\w|-)+' .SRCINFO) if [ -n "${repo}" ]; then update_github_tag "${repo}" && update_pkg fi