common/travis/check-install.sh: issue when no packages were build

when no packages are build the files are not there and the pattern wont
expand resulting in sed failing because the "file" doesn't exitst.
This commit is contained in:
Duncaen 2025-06-07 18:30:26 +02:00
parent 17d313cdbe
commit 7e3867613f
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -32,7 +32,10 @@ ROOTDIR="-r /check-install"
# can choose the one provided by cross-vpkg-dummy instead
# of the actual package
# this is fine to do here because it runs last in CI
sed -i -e '/bootstrap/d' "${CONFDIR#-C }"/*remote*.conf
for f in "${CONFDIR#-C }"/*remote*.conf; do
[ -e "$f" ] || break
sed -i -e '/bootstrap/d' "$f"
done
# if this fails, there were no packages built for this arch and thus no repodatas
xbps-install $ROOTDIR $ADDREPO $CONFDIR -S || exit 0