ping example.org instead of cloudflare's 1.1.1.1

This commit is contained in:
Luke Smith 2020-07-02 15:35:15 -04:00
parent 00534b7cca
commit 1ca7338596
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Syncs repositories and downloads updates, meant to be run as a cronjob.
ping -q -c 1 1.1.1.1 > /dev/null || exit
ping -q -c example.org > /dev/null || exit
notify-send "📦 Repository Sync" "Checking for package updates..."

View file

@ -3,7 +3,7 @@
# Set as a cron job to check for new RSS entries for newsboat.
# If newsboat is open, sends it an "R" key to refresh.
ping -q -c 1 1.1.1.1 > /dev/null || exit
ping -q -c 1 example.org > /dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."

View file

@ -36,7 +36,7 @@ printprices() { # Print/format all prices
# If currencies haven't been updated today, try to update them.
[ "$(stat -c %x "$HOME/.local/share/crypto-prices" | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] &&
{ ping -q -c 1 1.1.1.1 >/dev/null 2>&1 && getprices || exit ;}
{ ping -q -c 1 example.org >/dev/null 2>&1 && getprices || exit ;}
case $BLOCK_BUTTON in
1) uptime="$(date -d "$(stat -c %x "$dir")" '+%D at %T' | sed "s|$(date '+%D')|Today|")"