taos-check 144 字节
Newer Older
1
#!/bin/sh
M
muicoder 已提交
2
es=$(taos --check | grep "^[0-9]*:")
3 4 5 6 7 8
code=${es%%:*}
if [ "$code" -ne "0" ] && [ "$code" -ne "4" ]; then
    exit 0
fi
echo $es
exit 1