david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

pushzshconfig 20.06.2013 13:47

This commit is contained in:
david 2013-06-20 13:47:43 +02:00
parent 0cc6c205ab
commit 27b209cafd
1 changed files with 3 additions and 10 deletions

View File

@ -21,16 +21,9 @@ timestamp=$(date +%s)
if [ -r $ZSH/lastrun ];then
lastrun=$(cat $ZSH/lastrun)
if [ $((lastrun+604800)) -le $timestamp ]; then
#echo -e "do you want to update myzsh? [y/n] \c"
#read choice
#if [ $choice = "y" ]; then
echo "running update of myzsh now.."
cd $ZSH; git pull origin master; cd -
echo $timestamp > $ZSH/lastrun
#else
# # do not ask again for another day
# echo $((timestamp+86400)) > $ZSH/lastrun
#fi
echo "running update of myzsh now.."
cd $ZSH; git pull origin master; cd -
echo $timestamp > $ZSH/lastrun
fi
else
echo $timestamp > $ZSH/lastrun