summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
diff options
context:
space:
mode:
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