mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 16:26:31 +00:00
chore: 修复编译镜像未能正确安装工具链的问题 (#1071)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user