From 2c3420fc4ec1ddb5e1cedc437d4d349517e1e1c8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 10 Mar 2007 15:13:26 +0000 Subject: [PATCH] Use stat instead of ls for finding times. --- dostatus | 2 +- makepost | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dostatus b/dostatus index 13c2cf1..563e2b5 100755 --- a/dostatus +++ b/dostatus @@ -1,6 +1,6 @@ #!/bin/sh -newtime=`ls -al status | cut -c 43-54` +newtime=`stat --format %y status | cut -d: -f-2` echo -n "$newtime (CST): " > /home/sesse/bugscan/www/status ./bugreport -s >> /home/sesse/bugscan/www/status diff --git a/makepost b/makepost index d749a03..0affebf 100755 --- a/makepost +++ b/makepost @@ -1,7 +1,7 @@ #! /bin/sh -newtime=`ls -alL pstatus | cut -c 44-55` -oldtime=`ls -alL pstatus-old | cut -c 44-55` +newtime=`stat --format %y pstatus | cut -d: -f-2` +oldtime=`stat --format %y pstatus-old | cut -d: -f-2` title="Bug stamp-out list for $newtime (CST)" cat <