From 71ab5381f15448627645785495ab180a928f0c17 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 4 Feb 2023 09:29:40 +0100 Subject: [PATCH] fix: build if package not found --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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