bash check handler script