X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f8bc52eea3b39a989a7dd8ab2b1746266d208d71..f00b15cc369e1e3b7949a10a6fa9d8688f60a82f:/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn diff --git a/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn b/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn index 9685a6859..6ce576db1 100644 --- a/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn +++ b/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn @@ -96,11 +96,14 @@ 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 +> --[[David_Riebenbauer]]