#!/bin/sh es=$(taos --check) code=${es%%:*} if [ "$code" -ne "0" ] && [ "$code" -ne "4" ]; then exit 0 fi echo $es exit 1