#!/bin/sh

# Change this directory to point to the MARTi gui
MARTI_DIR=/Users/martins/GitHub/MARTi/gui

if [ -z "$MARTI_DIR" ] ; then
    echo "Error: You must set MARTI_DIR before running."
    exit 1
fi

FILE=${MARTI_DIR}/UI/index.js

if [ ! -f ${FILE} ] ; then
    echo "Error: Can't find index.js - it needs to be inside the UI subdirectory of the directory pointed to by MARTI_DIR which is currently ${MARTI_DIR}"
    exit 1
fi

exec node ${FILE} "$@"
