oops, cygwin is not linux

This commit is contained in:
ville rantanen
2017-06-11 20:53:25 +03:00
parent 903206e610
commit 81db6c671d

View File

@@ -25,7 +25,7 @@ test -e "$STATFILE" || { echo File "$STATFILE" does not exist >&2; exit 1; }
UNITS=${2:-S} UNITS=${2:-S}
case $OSTYPE in case $OSTYPE in
darwin*) created=$( stat -f %c -t %s "$STATFILE" ) ;; darwin*) created=$( stat -f %c -t %s "$STATFILE" ) ;;
linux*) created=$( stat -c %Y "$STATFILE" ) ;; *) created=$( stat -c %Y "$STATFILE" ) ;;
esac esac
now=$( date +%s ) now=$( date +%s )
age=$(( $now - $created )) age=$(( $now - $created ))