From 9450d1543c0eef501ce92d9389ed2de31e18a2d6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 31 Jul 2017 20:20:09 -0400 Subject: [PATCH] host/pushcommon: use dirname $0 to find pushvia --- host/pushcommon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/pushcommon.sh b/host/pushcommon.sh index 1fce50a..225643f 100644 --- a/host/pushcommon.sh +++ b/host/pushcommon.sh @@ -26,7 +26,7 @@ if [ -z "${MCUHOST:-}" ]; then dopushlua() { luafile ${1} ; ${=PUSHCMD} -f ${LUAFILE} -t ${2:-`basename $1`} ; } dopushcompile() { luafile ${1} ; ${=PUSHCMD} -f ${LUAFILE} -t ${2:-`basename $1`} -c ; } else - PUSHCMD="./host/pushvia.expect ${MCUHOST} ${PORT:-23}" + PUSHCMD="`dirname $0`/pushvia.expect ${MCUHOST} ${PORT:-23}" dopushtext() { ${=PUSHCMD} ${2:-`basename $1`} $1 ; } dopushlua() { luafile ${1} ; ${=PUSHCMD} ${2:-`basename $1`} ${LUAFILE} ; } dopushcompile() { luafile ${1} ; ${=PUSHCMD} ${2:-`basename $1`} ${LUAFILE} compile ; } -- 2.50.1