containers: fix globing of RPMs with two-digit version

`?` matches only a single character, which does not work with the
version on `main` being "10".
This commit is contained in:
Tomas Hozza 2022-09-01 15:22:06 +02:00 committed by Tomáš Hozza
parent bb421f845b
commit afd0db50c2
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ set -ux
if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
echo "Using RPMs" echo "Using RPMs"
rpm -i /share/rpms/koji-osbuild-?-1.*.rpm \ rpm -i /share/rpms/koji-osbuild-[[:digit:]]*-1.*.rpm \
/share/rpms/koji-osbuild-builder-*.rpm /share/rpms/koji-osbuild-builder-*.rpm
else else
echo "Using local plugin" echo "Using local plugin"

View file

@ -3,7 +3,7 @@ set -eux
if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
echo "Using RPMs" echo "Using RPMs"
rpm -i /share/rpms/koji-osbuild-?-1.*.rpm \ rpm -i /share/rpms/koji-osbuild-[[:digit:]]*-1.*.rpm \
/share/rpms/koji-osbuild-hub-*.rpm /share/rpms/koji-osbuild-hub-*.rpm
else else
echo "Using local plugin" echo "Using local plugin"