fix testing if a variable exists

This commit is contained in:
Ralf Jung 2020-01-06 11:02:25 +01:00
parent e979589357
commit 6a614708ca

View file

@ -26,7 +26,7 @@ echo "Test host architecture"
run_tests
echo
if [ -n "$FOREIGN_TARGET" ]; then
if [ -n "${FOREIGN_TARGET+exists}" ]; then
echo "Test foreign architecture ($FOREIGN_TARGET)"
MIRI_TEST_TARGET="$FOREIGN_TARGET" run_tests
echo