From 8f7b12d574066f264e068aefe55f977d395a9c11 Mon Sep 17 00:00:00 2001 From: Edward Dorrington Date: Mon, 16 Nov 2020 09:01:20 -0600 Subject: [PATCH] Change update check interval to 1 week --- .zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 6b86668..1f4d96c 100644 --- a/.zshrc +++ b/.zshrc @@ -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