summaryrefslogtreecommitdiffstats
path: root/.scripts/newsup
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-10-14 13:05:07 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-10-14 13:05:07 -0400
commit39375e5f8f74f5ff62997bc65a3223bdbde0c1ea (patch)
treee4d5cdf9d0c60dda813e4ed246c045672041d364 /.scripts/newsup
parent2c44ee2b73bfd517fde7dbfe998f1414c712aa39 (diff)
downloadeibhear-39375e5f8f74f5ff62997bc65a3223bdbde0c1ea.tar.gz
eibhear-39375e5f8f74f5ff62997bc65a3223bdbde0c1ea.tar.zst
eibhear-39375e5f8f74f5ff62997bc65a3223bdbde0c1ea.zip
net check in newsup
Diffstat (limited to '.scripts/newsup')
-rwxr-xr-x.scripts/newsup1
1 files changed, 1 insertions, 0 deletions
diff --git a/.scripts/newsup b/.scripts/newsup
index 986524a..ab4116e 100755
--- a/.scripts/newsup
+++ b/.scripts/newsup
@@ -1,5 +1,6 @@
#!/bin/sh
+ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
echo "📰 🔃" > ~/.newsup
pkill -RTMIN+6 i3blocks
printf "Loading new RSS entries for newsboat...\\n"