summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-01 14:24:51 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-01 14:25:24 -0700
commit9eb9766c7d1a59d9d2a239dcfcd6ab67d2417cf9 (patch)
treea568b3a05f7b9ae52354e961eb429711897a6347
parent064598d9a3291b827b1b76293fbf038710b79bba (diff)
downloadmc-9eb9766c7d1a59d9d2a239dcfcd6ab67d2417cf9.tar.gz
Exit after we find a system match.
-rwxr-xr-xsysselect.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysselect.sh b/sysselect.sh
index 8a4629f..85a8ec8 100755
--- a/sysselect.sh
+++ b/sysselect.sh
@@ -33,12 +33,14 @@ for suffix in myr s; do
if test -f $1+$platform.$suffix; then
found=true
echo $1+$platform.$suffix
+ exit
fi
done
if test "x$found" = "x"; then
if test -f $1.$suffix; then
found=true
echo $1.$suffix
+ exit
fi
fi
done