From e993c9f56488aa3356bf8b9c794dbcc5bc0f511d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 12 Apr 2010 18:39:00 -0700 Subject: [PATCH] use stat and date properly instead of ls tomfoolery --- dohtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dohtml b/dohtml index 316d5ee..3e1e04e 100755 --- a/dohtml +++ b/dohtml @@ -145,8 +145,8 @@ makepage() { mv -f $3.new $3 } -time=$(date -u --date="$(ls -Ll status | awk '{print $6, $7}'):00 $(date +%z)") -oldtime=$(date -u --date="$(ls -Ll status-old | awk '{print $6, $7}'):00 $(date +%z)") +time=$(date -u -d '@'$(($(stat -c '%Y' status) / 3600 * 3600))) +oldtime=$(date -u -d '@'$(($(stat -c '%Y' status-old) / 3600 * 3600))) title="Release-critical bugs status" makepage "debian" "$title" "$htmldir/debian/all.html" "$time" -- 2.39.2