Change update check interval to 1 week

This commit is contained in:
2020-11-16 09:01:20 -06:00
parent 02c8df1e2e
commit 8f7b12d574

4
.zshrc
View File

@@ -26,10 +26,10 @@ case "`uname`" in
;;
esac
if [ -f .lastcheck ]; then
# if it hasn't been touched in the last 24 hours
# if it hasn't been touched in the last week
NOW=`date +%s`
LAST=`stat $STATARGS .lastcheck`
if [ $(($NOW - $LAST)) -gt 86400 ]; then
if [ $(($NOW - $LAST)) -gt 604800 ]; then
echo "Updating config"
git pull
touch .lastcheck