Forgot to fix this watchdog script to use bash since it uses the [[ ]] if style