代码拉取完成,页面将自动刷新
同步操作将从 OceanBase/oceanbase-diagnostic-tool 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
####
OBDIAG_PYTHON="python"
####
whitespace="[[:space:]]"
final_str=""
blank_str=" "
OBDIAG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PY_VERSION=`$OBDIAG_PYTHON -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1}'`
if (( $PY_VERSION == 3 ))
then
echo "your python version is $PY_VERSION"
export LD_LIBRARY_PATH=$(ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012 | awk -F\" '{print $2}' | sed 's/=//' | tr '\n' ':')$OBDIAG_DIR/dependencies/python3/libs/
export PYTHONPATH=$OBDIAG_DIR/dependencies/python3/site-packages:$PYTHONPATH
$OBDIAG_PYTHON ./dependencies/check_dependencies.py
elif (( $PY_VERSION == 2 ))
then
echo "your python version is $PY_VERSION"
export LD_LIBRARY_PATH=$(ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012 | awk -F\" '{print $2}' | sed 's/=//' | tr '\n' ':')$OBDIAG_DIR/dependencies/python2/libs/
export PYTHONPATH=$OBDIAG_DIR/dependencies/python2/site-packages:$PYTHONPATH
$OBDIAG_PYTHON ./dependencies/check_dependencies.py
else
echo "Please make sure Python exists in your environment"
fi
for i in "$@"
do
if [[ $i =~ $whitespace ]]
then
i="\"$i\""
fi
final_str=${final_str}${blank_str}${i}
done
PROG="$0" $OBDIAG_PYTHON ./obdiag_main.py $final_str
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。