Skip to content

Commit

Permalink
added deletion of individual script logs that are older than 1 hour -…
Browse files Browse the repository at this point in the history
… safer pattern
  • Loading branch information
Julien Lamarche committed Mar 7, 2018
1 parent 9ceacb6 commit ba5ccb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.bash
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ for script in $__dir/*.bash ; do
fi

#Delete log files more than 1.5 days ago (36 hours)
find ~/log -name "$bn*" -mmin +60 -exec rm -v {} \;
find ~/log -name "$bn.*.log" -mmin +60 -exec rm -v {} \;


done
Expand Down

0 comments on commit ba5ccb1

Please sign in to comment.