new dev option to skip updates

This commit is contained in:
Nicole O'Connor 2021-08-24 18:44:46 -07:00
parent 6fdf8235e3
commit cfb6228116
3 changed files with 12 additions and 2 deletions

5
base/breakerbox.zsh Normal file
View File

@ -0,0 +1,5 @@
# This file is meant for developer use. Editing this file voids your warranty.
# ESPECIALLY DON'T EDIT this file if you're using zeesh near nuclear reactor
# control software for whatever unimaginable reason.
_zeeshdev_ignore_updates=0

View File

@ -22,5 +22,9 @@ function zeesh_update () {
fi
}
ticker_message "zeesh: checking network"
curl -s http://lavacano.net --connect-timeout 1 > /dev/null && zeesh_update
if [[ $_zeeshdev_ignore_updates != 1 ]]; then
ticker_message "zeesh: checking network"
curl -s http://lavacano.net --connect-timeout 1 --max-time 3 > /dev/null && zeesh_update
else
ticker_message "zeesh: skipping updates (fuse blown)"
fi

View File

@ -1,3 +1,4 @@
source ~/.local/share/zeesh/base/breakerbox.zsh
source ~/.local/share/zeesh/base/zeesh.zsh
ticker_message "zeesh: bootstrap"