Skip to content

Commit

Permalink
Use binary tag instead of cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jlingema committed Dec 8, 2016
1 parent 913c99d commit 9730f4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh

if [ -z "$CMTCONFIG" ] ; then
echo "error: CMTCONFIG not defined"
if [ -z "$BINARY_TAG" ] ; then
echo "error: BINARY_TAG not defined - make sure your environment is set up."
exit 1
fi

run_cmd=$(dirname $0)/build.$CMTCONFIG/run
run_cmd=$(dirname $0)/build.$BINARY_TAG/run
if [ -e "$run_cmd" ] ; then
exec $run_cmd "$@"
else
echo "error: cannot find build.$CMTCONFIG/run, did you build?"
echo "error: cannot find build.$BINARY_TAG/run, did you build?"
exit 1
fi

0 comments on commit 9730f4c

Please sign in to comment.