Update ore.sh
This commit is contained in:
parent
5b17823425
commit
461115eeee
22
ore.sh
22
ore.sh
@ -162,12 +162,13 @@ function check_and_install_dependencies() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 检查是否已安装 Ore CLI
|
# 检查是否已安装 Ore CLI
|
||||||
if ! ore -V &> /dev/null; then
|
if ! cargo install ore-cli --version | grep ore-cli &> /dev/null; then
|
||||||
echo "Ore CLI 未安装,正在安装..."
|
echo "Ore CLI 未安装,正在安装..."
|
||||||
cargo install ore-cli
|
cargo install ore-cli
|
||||||
else
|
else
|
||||||
echo "Ore CLI 已安装。"
|
echo "Ore CLI 已安装。"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
|
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
}
|
}
|
||||||
@ -224,15 +225,6 @@ sudo apt install -y curl build-essential jq git libssl-dev pkg-config screen
|
|||||||
check_and_install_dependencies
|
check_and_install_dependencies
|
||||||
|
|
||||||
|
|
||||||
# 检查并将Solana的路径添加到 .bashrc,如果它还没有被添加
|
|
||||||
grep -qxF 'export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"' ~/.bashrc || echo 'export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"' >> ~/.bashrc
|
|
||||||
|
|
||||||
# 检查并将Cargo的路径添加到 .bashrc,如果它还没有被添加
|
|
||||||
grep -qxF 'export PATH="$HOME/.cargo/bin:$PATH"' ~/.bashrc || echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
|
|
||||||
|
|
||||||
# 使改动生效
|
|
||||||
source ~/.bashrc
|
|
||||||
|
|
||||||
# 提示用户输入RPC配置地址
|
# 提示用户输入RPC配置地址
|
||||||
read -p "请输入RPC配置地址: " rpc_address
|
read -p "请输入RPC配置地址: " rpc_address
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user