new dev option to skip updates
This commit is contained in:
parent
6fdf8235e3
commit
cfb6228116
5
base/breakerbox.zsh
Normal file
5
base/breakerbox.zsh
Normal 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
|
@ -22,5 +22,9 @@ function zeesh_update () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ticker_message "zeesh: checking network"
|
if [[ $_zeeshdev_ignore_updates != 1 ]]; then
|
||||||
curl -s http://lavacano.net --connect-timeout 1 > /dev/null && zeesh_update
|
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
|
Loading…
Reference in New Issue
Block a user