Skip to content

Commit b586630

Browse files
committed
Fix failed builds filtration in ./setup
1 parent 85e1283 commit b586630

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

support/setup/installing.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,16 @@ install_all() {
257257

258258
printf '\n%b\n' "${COLOR_CYAN}*** Build results ***${COLOR_END}"
259259

260-
if [ "${FAILED_BUILDS#*amuse-mesa-r15140}" != "${FAILED_BUILDS}" ] ; then
260+
UNEXPECTED_FAILED_BUILDS=$(printf '%b' "${FAILED_BUILDS}" | grep -v mesa-r15140)
261+
if [ "${UNEXPECTED_FAILED_BUILDS}" != "${FAILED_BUILDS}" ] ; then
261262
printf '\n%b\n' "${COLOR_RED}amuse-mesa-r15140 failed to install${COLOR_END}"
263+
262264
printf '\nMESA r15140 failed to install because it can only be installed in\n'
263265
printf 'develop mode. This is expected, if unfortunate. Please use\n\n'
264266
printf ' ./setup develop amuse-mesa-r15140\n\n'
265267
printf 'to install it.\n\n'
266268

267-
FAILED_BUILDS="${FAILED_BUILDS#*amuse-mesa-r15140}"
269+
FAILED_BUILDS="${UNEXPECTED_FAILED_BUILDS}"
268270
fi
269271

270272
if [ "a${FAILED_BUILDS}" != "a" ] ; then

0 commit comments

Comments
 (0)