Skip to content

Commit 6a61470

Browse files
committed
fix testing if a variable exists
1 parent e979589 commit 6a61470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo "Test host architecture"
2626
run_tests
2727
echo
2828

29-
if [ -n "$FOREIGN_TARGET" ]; then
29+
if [ -n "${FOREIGN_TARGET+exists}" ]; then
3030
echo "Test foreign architecture ($FOREIGN_TARGET)"
3131
MIRI_TEST_TARGET="$FOREIGN_TARGET" run_tests
3232
echo

0 commit comments

Comments
 (0)