taos-check 126 字节
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh
es=$(taos --check)
code=${es%%:*}
if [ "$code" -ne "0" ] && [ "$code" -ne "4" ]; then
    exit 0
fi
echo $es
exit 1