Use explicit search for known extensions

Just wildcards messes up with signatures

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-15 22:33:44 +02:00
parent 229e6dc375
commit 6fad0c2b4b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

4
run.sh
View file

@ -66,9 +66,9 @@ gosu builder getkeys.sh
# Execute the build itself # Execute the build itself
gosu builder makepkg ${MAKEPKG_OPTS[@]} 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 if [ -z "${REPODB}" ]; then
echo "No database found in /repo, not adding package." echo "No database found in /repo, not adding package."
echo "The built package is available in ${PACKAGE}" echo "The built package is available in ${PACKAGE}"