fixed bug. expect dont wait execute of gradle build

This commit is contained in:
MaximZaitsev
2016-08-17 15:43:37 +03:00
parent 4db60464b8
commit 222edce137
+3 -3
View File
@@ -47,10 +47,8 @@ if {$host==""} {
exit 1
}
set timeout 3
spawn ./gradlew build
expect eof
expect " $"
spawn scp -r ./build/js/main.js ./build/js/kotlin.js ./build/js/package.json ./build/js/proto/ $userName@$host:./server/
@@ -62,6 +60,8 @@ spawn ssh $userName@$host
expect "password:"
send "$password\r"
set timeout 3
expect "%"
send "killall -9 node \r"
expect " $"