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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user