use grep -q option to avoid bash error