runconsole.sh 265 Bytes
Newer Older
1 2 3 4
#!/bin/bash

mode=$1

5
busconsole="env LUA_PATH=${OPENBUS_SDKLUA_TEST}/?.lua ${OPENBUS_SDKLUA_HOME}/bin/busconsole"
6

7
if [[ "$mode" != "DEBUG" && "$mode" != "RELEASE" ]]; then
8 9 10 11
	echo "Usage: $0 <RELEASE|DEBUG> <args>"
	exit 1
fi

12
$busconsole "${@:2:${#@}}" || exit $?