]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
some script cleanup
authorhttp://davrieb.livejournal.com/ <http://davrieb.livejournal.com/@web>
Sat, 19 Sep 2009 23:46:06 +0000 (19:46 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 19 Sep 2009 23:46:06 +0000 (19:46 -0400)
doc/forum/How_does_ikiwiki_remember_times__63__.mdwn

index 9685a6859658a36ee44b8528da816cb3eb353a69..df9636a1e9655fecce6590a992cbddbd8fe841b0 100644 (file)
@@ -96,11 +96,13 @@ Do I have it right?
     set +x
     
     for FILE in **/*(.); do
-      TIMES="`git log --follow  --pretty=format:%ai $FILE`"
+      TIMES="`git log --pretty=format:%ai $FILE`"
       MTIME="`echo $TIMES | head -n1`"
     
-      echo  touch -m -d "$MTIME" $FILE
-      touch -m -d "$MTIME" $FILE
+      if [ ! -z $MTIME ]; then
+        echo  touch -m -d "$MTIME" $FILE
+        touch -m -d "$MTIME" $FILE
+      fi
     
     done