oops, cygwin is not linux
This commit is contained in:
@@ -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 ))
|
||||
|
||||
Reference in New Issue
Block a user