mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
8 lines
144 B
Bash
Executable file
8 lines
144 B
Bash
Executable file
#!/bin/sh
|
|
es=$(taos --check | grep "^[0-9]*:")
|
|
code=${es%%:*}
|
|
if [ "$code" -ne "0" ] && [ "$code" -ne "4" ]; then
|
|
exit 0
|
|
fi
|
|
echo $es
|
|
exit 1
|