]> git.donarmstrong.com Git - bugscan.git/blobdiff - dostatus
Use stat instead of ls for finding times.
[bugscan.git] / dostatus
index 13c2cf1042a7a00f048eb6b8194bced1caa6ec99..563e2b5455cdad9bad2d7460d76cf76592e8f04c 100755 (executable)
--- 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