fix: build if package not found
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
46465140df
commit
71ab5381f1
1 changed files with 3 additions and 3 deletions
6
build.sh
6
build.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash +x
|
||||||
# shellcheck disable=SC3044,SC3009
|
# shellcheck disable=SC3044,SC3009
|
||||||
|
|
||||||
. .util.sh
|
. .util.sh
|
||||||
|
@ -22,7 +22,7 @@ build() {
|
||||||
epoch=${epoch}:
|
epoch=${epoch}:
|
||||||
fi
|
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"
|
echo "WARN: Found ${name} in arch repo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ for d in */; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -c 'pkgver()' PKGBUILD >/dev/null; then
|
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
|
if [ -n "${repo}" ]; then
|
||||||
update_github_tag "${repo}" && update_pkg
|
update_github_tag "${repo}" && update_pkg
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue