File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- while ! timeout 1 bash -c " echo > /dev/tcp/vote/80" ; do sleep 1; done
2
+
3
+ while ! timeout 1 bash -c " echo > /dev/tcp/vote/80" ; do
4
+ sleep 1
5
+ done
6
+
3
7
curl -sS -X POST --data " vote=b" http://vote > /dev/null
4
8
sleep 10
9
+
5
10
if phantomjs render.js http://result | grep -q ' 1 vote' ; then
6
- echo -e " \e[42m------------"
7
- echo -e " \e[92mTests passed"
8
- echo -e " \e[42m------------"
11
+ echo -e " \\ e[42m------------"
12
+ echo -e " \\ e[92mTests passed"
13
+ echo -e " \\ e[42m------------"
9
14
exit 0
10
- fi
11
- echo -e " \e[41m------------"
12
- echo -e " \e[91mTests failed"
13
- echo -e " \e[41m------------"
15
+ else
16
+ echo -e " \\ e[41m------------"
17
+ echo -e " \\ e[91mTests failed"
18
+ echo -e " \\ e[41m------------"
14
19
exit 1
20
+ fi
You can’t perform that action at this time.
0 commit comments