bash script for time check simple