From 81db6c671d4a7d237c17b5b8c1799951b6410fb4 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sun, 11 Jun 2017 20:53:25 +0300 Subject: [PATCH] oops, cygwin is not linux --- files/file-age | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ))