Skip to content

Commit cba26fe

Browse files
committed
Update
1 parent 3e5b0d4 commit cba26fe

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/data/data/com.tool.tree/files/home/bin/bash
22

3-
if nc -z google.com 80 &>/dev/null; then
4-
exit 0
5-
elif nc -z baidu.com 80 &>/dev/null; then
6-
exit 0
7-
else
8-
exit 1
9-
fi
3+
nc -z google.com 80 &>/dev/null || nc -z baidu.com 80 &>/dev/null && exit 0 || exit 1
4+

0 commit comments

Comments
 (0)