]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
host/pushcommon: use dirname $0 to find pushvia
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 1 Aug 2017 00:20:09 +0000 (20:20 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 1 Aug 2017 00:20:09 +0000 (20:20 -0400)
host/pushcommon.sh

index 1fce50a411ddd461eb3baccc071b87c1249c952d..225643f0b635fa67f949eccc8452c76f6b8c24e6 100644 (file)
@@ -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 ; }