diff --git a/files/file-age b/files/file-age index 6c42516..0c9085d 100755 --- a/files/file-age +++ b/files/file-age @@ -25,7 +25,7 @@ test -e "$STATFILE" || { echo File "$STATFILE" does not exist >&2; exit 1; } UNITS=${2:-S} case $OSTYPE in darwin*) created=$( stat -f %c -t %s "$STATFILE" ) ;; - linux*) created=$( stat -c %Y "$STATFILE" ) ;; + *) created=$( stat -c %Y "$STATFILE" ) ;; esac now=$( date +%s ) age=$(( $now - $created ))