From 6fad0c2b4b957dd5611bdac5d22a2f29220771bd Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 15 Jul 2020 22:33:44 +0200 Subject: [PATCH] Use explicit search for known extensions Just wildcards messes up with signatures Signed-off-by: Knut Ahlers --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index c26d4e4..b4a191b 100755 --- a/run.sh +++ b/run.sh @@ -66,9 +66,9 @@ gosu builder getkeys.sh # Execute the build itself gosu builder makepkg ${MAKEPKG_OPTS[@]} -PACKAGE=($(ls *.pkg.tar.*)) +PACKAGE=($(find . -regextype egrep -regex '^.*\.pkg(|\.tar|\.tar\.xz|\.tar\.zst)$')) -REPODB=$(find /repo -name '*.db.tar.*') +REPODB=$(find /repo -regextype egrep -regex '^.*\.db(|\.tar|\.tar\.xz|\.tar.zst)$') if [ -z "${REPODB}" ]; then echo "No database found in /repo, not adding package." echo "The built package is available in ${PACKAGE}"