]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
host/pushcommon.sh for push scripts
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 11 Oct 2016 22:09:45 +0000 (18:09 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 11 Oct 2016 22:09:45 +0000 (18:09 -0400)
pushall.sh

index 15b7740463cee3cbc15719300f998ea611106cdc..84533da3ef4fe2f3ab338b1434af9c2ae7af4e82 100755 (executable)
@@ -1,9 +1,8 @@
 #!/bin/bash
 
 set -e -u
-PUSHCMD="./host/pushvia.expect ${HOST} ${PORT:-23}"
-dopush() { ${PUSHCMD} ${2:-`basename $1`} $1; }
-dopushcompile() { ${PUSHCMD} ${2:-`basename $1`} $1 compile; }
+
+. ./host/pushcommon.sh
 
 dopushcompile net/nwfmqtt.lua
 dopushcompile cap1188/cap1188.lua