TDengine/packaging/docker/bin/taos-check
muicoder ac0ac18cc1
Match the status code (#21225)
Signed-off-by: muicoder <muicoder@gmail.com>
2023-05-10 11:44:56 +08:00

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