From e41d15f8dd8fcf62b9adabbea916ffe59694af35 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:56:00 +0800 Subject: [PATCH] Update ore.sh --- ore.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ore.sh b/ore.sh index e65d7c3..ecf0c46 100644 --- a/ore.sh +++ b/ore.sh @@ -22,6 +22,7 @@ sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)" if ! command -v solana-keygen &> /dev/null; then echo "将 Solana CLI 添加到 PATH" export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" + export PATH="$HOME/.cargo/bin:$PATH" fi # 创建 Solana 密钥对 @@ -117,6 +118,8 @@ function check_and_install_dependencies() { echo "Rust 和 Cargo 未安装,正在安装..." curl https://sh.rustup.rs -sSf | sh -s -- -y source $HOME/.cargo/env + export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" + export PATH="$HOME/.cargo/bin:$PATH" else echo "Rust 和 Cargo 已安装。" fi