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}
|
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 ))
|
||||||
|
|||||||
Reference in New Issue
Block a user