#!/bin/bash

mrt.js $@:1

COMMAND=`mrt.js command ${@:1}`

COMMAND_PARTS=( $COMMAND )
COMMAND_MODE=${COMMAND_PARTS[*]:1:1}

if [[ $COMMAND_MODE == "run" ]]
then
  bash $COMMAND
fi

#!/bin/bash

BASEDIR=$(dirname "$0")
MRTJS="$BASEDIR/mrt.js"

$MRTJS $@:1

COMMAND=`$MRTJS command ${@:1}`

COMMAND_PARTS=( $COMMAND )
COMMAND_MODE=${COMMAND_PARTS[*]:1:1}

if [[ $COMMAND_MODE == "run" ]]
then
  bash $COMMAND
fi

Update the script so you can call it directly (if you've run `npm install` in the meteorite dir)
Update the script so you can call it directly (if you've run `npm install` in the meteorite dir)