fixed missing files problem
This commit is contained in:
@@ -57,6 +57,11 @@ _remove() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[[ $COMMAND = "old" ]] && {
|
[[ $COMMAND = "old" ]] && {
|
||||||
|
_exist || {
|
||||||
|
[[ "$VERBOSE" = "on" ]] && echo "LOCK FILE MISSING" | $BOXES
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
[[ -z "$ARG" ]] && _help && echo "MISSING ARGUMENT" | $BOXES && exit 1
|
||||||
created=$( stat -c %Z "$LOCKFILE" )
|
created=$( stat -c %Z "$LOCKFILE" )
|
||||||
now=$( date +%s )
|
now=$( date +%s )
|
||||||
age=$(( $now - $created ))
|
age=$(( $now - $created ))
|
||||||
|
|||||||
Reference in New Issue
Block a user