runconsole.sh 308 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 8 9 10 11 12 13 14

if [[ "$mode" == "DEBUG" ]]; then
	busconsole="$busconsole -d"
elif [[ "$mode" != "RELEASE" ]]; then
	echo "Usage: $0 <RELEASE|DEBUG> <args>"
	exit 1
fi

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