Change update check interval to 1 week
This commit is contained in:
4
.zshrc
4
.zshrc
@@ -26,10 +26,10 @@ case "`uname`" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -f .lastcheck ]; then
|
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`
|
NOW=`date +%s`
|
||||||
LAST=`stat $STATARGS .lastcheck`
|
LAST=`stat $STATARGS .lastcheck`
|
||||||
if [ $(($NOW - $LAST)) -gt 86400 ]; then
|
if [ $(($NOW - $LAST)) -gt 604800 ]; then
|
||||||
echo "Updating config"
|
echo "Updating config"
|
||||||
git pull
|
git pull
|
||||||
touch .lastcheck
|
touch .lastcheck
|
||||||
|
|||||||
Reference in New Issue
Block a user