mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 16:02:55 +02:00
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:
parent
17d313cdbe
commit
7e3867613f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue