summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-06-27 20:27:49 -0700
committerOri Bernstein <ori@eigenstate.org>2018-06-27 20:27:49 -0700
commit41c790aa25a1457849e76fd748f10329e74ccd2c (patch)
treebe834c78832fdbd99e1a24cbb3c544bef3e4cc05 /mbldwrap.sh
parent42c82e8972ee89633b2f50fc807d0cec750dd12a (diff)
downloadmc-41c790aa25a1457849e76fd748f10329e74ccd2c.tar.gz
Make bootstrap more seamless.
Don't mix installed/new programs.
Diffstat (limited to 'mbldwrap.sh')
-rwxr-xr-xmbldwrap.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbldwrap.sh b/mbldwrap.sh
index efe9552..4d8bfc6 100755
--- a/mbldwrap.sh
+++ b/mbldwrap.sh
@@ -13,10 +13,12 @@ else
export MYR_RT=`pwd`/rt/_myrrt.o
fi
-if [ -f obj/mbld/mbld ]; then
- MBLD=obj/mbld/mbld
-else
- MBLD=$(command -v mbld)
+if [ -z "$MBLD" ]; then
+ if [ -f obj/mbld/mbld ]; then
+ MBLD=obj/mbld/mbld
+ else
+ MBLD=$(command -v mbld)
+ fi
fi
if [ -z "$MBLD" ]; then