RoboTwin_image/check_env_health.sh
2025-07-02 03:13:07 +00:00

23 lines
581 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "===================================="
echo "开始验证RoboTwin环境..."
echo "===================================="
# 获取脚本所在目录的绝对路径
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
# 运行环境验证脚本
python script/env_health_checker.py
# 获取验证结果状态
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo -e "\n[成功] RoboTwin环境健康可以正常使用。"
exit 0
else
echo -e "\n[错误] RoboTwin环境验证失败请查看详细信息进行修复。"
exit 1
fi