lock util to use mod time instead of created time
This commit is contained in:
@@ -62,7 +62,7 @@ _remove() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
[[ -z "$ARG" ]] && _help && echo "MISSING ARGUMENT" | $BOXES && exit 1
|
[[ -z "$ARG" ]] && _help && echo "MISSING ARGUMENT" | $BOXES && exit 1
|
||||||
created=$( stat -c %Z "$LOCKFILE" )
|
created=$( stat -c %Y "$LOCKFILE" )
|
||||||
now=$( date +%s )
|
now=$( date +%s )
|
||||||
age=$(( $now - $created ))
|
age=$(( $now - $created ))
|
||||||
test $ARG -lt $age
|
test $ARG -lt $age
|
||||||
|
|||||||
Reference in New Issue
Block a user