]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
zshify host push tools
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 17 Jan 2017 06:40:47 +0000 (01:40 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 18 Jan 2017 02:18:02 +0000 (21:18 -0500)
host/pushcommon.sh
host/pushinit.sh

index bc08badf4b02760acf46bda169798679e0fb22aa..d43f1454248636dec5b03d5730a36daf5ef5dd2f 100644 (file)
@@ -1,11 +1,11 @@
 if [ -z ${MCUHOST:-} ]; then
   # Uses LUATOOL to push init and dependencies to the device; bootstrap!
   PUSHCMD="${LUATOOL} --delay 0.1 -p ${MCUPORT} -b ${MCUBAUD}"
-  dopush() { ${PUSHCMD} -f $1 -t ${2:-`basename $1`}; }
-  dopushcompile() { ${PUSHCMD} -f $1 -t ${2:-`basename $1`} -c; }
+  dopush() { ${=PUSHCMD} -f $1 -t ${2:-`basename $1`}; }
+  dopushcompile() { ${=PUSHCMD} -f $1 -t ${2:-`basename $1`} -c; }
 else
   # Uses host/pushvia to push everything if MCUHOST is set
   PUSHCMD="./host/pushvia.expect ${MCUHOST} ${PORT:-23}"
-  dopush() { ${PUSHCMD} ${2:-`basename $1`} $1; }
-  dopushcompile() { ${PUSHCMD} ${2:-`basename $1`} $1 compile; }
+  dopush() { ${=PUSHCMD} ${2:-`basename $1`} $1; }
+  dopushcompile() { ${=PUSHCMD} ${2:-`basename $1`} $1 compile; }
 fi
index 708069a8b5a260fb1b4ed1f71458f31c89d998d2..c3801add9d05dd129040efd9ff37ca184ba4bd32 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/zsh
 set -e -u
 
 . ./host/pushcommon.sh