]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_ctfws/commitdiff
ctfws: pushall fixes and tweaks
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 29 Jul 2017 20:18:09 +0000 (16:18 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 31 Jul 2017 11:59:13 +0000 (07:59 -0400)
Check the right shell variable
Now that the modules compile at boot, just push, don't compile now

pushall.sh

index b0c0aac757e8c7b653eda59fe7a1ba398e4cae02..98de23bed967bbdf26418073bec143704a35df6e 100755 (executable)
@@ -5,17 +5,17 @@ set -e -u
 . ./host/pushcommon.sh
 
 pushsrc() {
-  dopushcompile net/nwfmqtt.lua
-  dopushcompile _external/lcd1602.lua
-  dopushcompile examples/ctfws/ctfws.lua
-  dopushcompile examples/ctfws/ctfws-lcd.lua
-  dopushcompile examples/ctfws/init3.lua
+  dopush net/nwfmqtt.lua
+  dopush _external/lcd1602.lua
+  dopush examples/ctfws/ctfws.lua
+  dopush examples/ctfws/ctfws-lcd.lua
+  dopush examples/ctfws/init3.lua
   dopushcompile examples/ctfws/init2.lua
 }
 
 if [ -n "${2:-}" ]; then
   if [ -d examples/ctfws/conf/$2 ]; then CONFDIR=examples/ctfws/conf/$2
-  elif [ -d $1 ]; then CONFDIR=$2
+  elif [ -d $2 ]; then CONFDIR=$2
   else echo "Not a directory: $2"; exit 1
   fi
 fi