We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e5b0d4 commit cba26feCopy full SHA for cba26fe
1 file changed
app/src/main/assets/home/bin/checkonline
@@ -1,9 +1,4 @@
1
#!/data/data/com.tool.tree/files/home/bin/bash
2
3
-if nc -z google.com 80 &>/dev/null; then
4
-exit 0
5
-elif nc -z baidu.com 80 &>/dev/null; then
6
7
-else
8
-exit 1
9
-fi
+nc -z google.com 80 &>/dev/null || nc -z baidu.com 80 &>/dev/null && exit 0 || exit 1
+
0 commit comments