From 7e3867613f281e15c68410bac537d22b5a38e96d Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 7 Jun 2025 18:30:26 +0200 Subject: [PATCH] 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. --- common/travis/check-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/travis/check-install.sh b/common/travis/check-install.sh index 2117e45a1ea..cf8a0ebdedf 100755 --- a/common/travis/check-install.sh +++ b/common/travis/check-install.sh @@ -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