Change update check interval to 1 week
This commit is contained in:
4
.zshrc
4
.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
|
||||
|
||||
Reference in New Issue
Block a user