chore: 修复编译镜像未能正确安装工具链的问题 (#1071)

Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
LoGin
2024-12-07 16:37:15 +08:00
committed by GitHub
parent 6e85059fbc
commit c09af909c5
4 changed files with 22 additions and 20 deletions

View File

@ -2,7 +2,8 @@ echo "正在为rust换源"
sparse="false"
CONFIG_FILE=~/.cargo/config.toml
CARGO_HOME=${CARGO_HOME:-~/.cargo}
CONFIG_FILE=$CARGO_HOME/config.toml
# 创建父目录
if [ ! -d ~/.cargo ]; then
mkdir -p ~/.cargo