From: http://davrieb.livejournal.com/ Date: Sat, 19 Sep 2009 23:46:06 +0000 (-0400) Subject: some script cleanup X-Git-Tag: 3.14159265~13 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/8ae7356b09ffa78fb174dde7c5c31c08177eb6db?ds=inline;hp=--cc some script cleanup --- 8ae7356b09ffa78fb174dde7c5c31c08177eb6db diff --git a/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn b/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn index 9685a6859..df9636a1e 100644 --- a/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn +++ b/doc/forum/How_does_ikiwiki_remember_times__63__.mdwn @@ -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