Skip to content

Commit 0526c1d

Browse files
authored
Merge pull request #589 from cglewis/main
enforce a timeout
2 parents cddb915 + dab2c41 commit 0526c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PiBuoyV2/services/sense/internet_check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if wget -q --spider http://github.com; then
3+
if timeout 5 wget -q --spider http://github.com; then
44
echo "Online"
55
else
66
echo "Offline"

0 commit comments

Comments
 (0)