1 Star 7 Fork 0

莱西丶凌盾/Manyana_deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update.sh 818 Bytes
一键复制 编辑 原始数据 按行查看 历史
莱西丶凌盾 提交于 2024-06-17 14:38 . update update.sh.
#!/bin/bash
ARCH=$(uname -m)
python_version=""
if [ "$ARCH" == "x86_64" ]; then
python_version="python3.9"
else
python_version="python"
fi
# 尝试解析符号链接获取实际路径
if command -v readlink &> /dev/null; then
script_path=$(readlink -f "$0")
elif command -v realpath &> /dev/null; then
script_path=$(realpath "$0")
else
# 不支持 readlink 或 realpath 的情况
script_path=$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")
fi
# 获取当前脚本所在的目录(绝对路径)
script_dir=$(dirname "$script_path")
# 获取父目录(绝对路径)
parent_dir=$(cd "$script_dir/.."; pwd)
START_DIR=$script_dir
CURRENT_DIR=$parent_dir
clear
cd $CURRENT_DIR/Manyana/
source $HOME/miniconda/bin/activate qqbot
$python_version setUp.py | tee $CURRENT_DIR/start/update_log.txt
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/laixi_lingdun/Manyana_deploy.git
git@gitee.com:laixi_lingdun/Manyana_deploy.git
laixi_lingdun
Manyana_deploy
Manyana_deploy
main

搜索帮助