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

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