Use agave prefix in scripts for pre-installed binaries (#155)

This commit is contained in:
Justin Starry 2024-03-09 01:02:21 +08:00 committed by GitHub
parent 7a8e29d4d5
commit 68be105870
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -29,9 +29,13 @@ if [[ -n $USE_INSTALL || ! -f "$SOLANA_ROOT"/Cargo.toml ]]; then
declare program="$1" declare program="$1"
if [[ -z $program ]]; then if [[ -z $program ]]; then
printf "solana" printf "solana"
else
if [[ $program == "validator" || $program == "ledger-tool" || $program == "watchtower" || $program == "install" ]]; then
printf "agave-%s" "$program"
else else
printf "solana-%s" "$program" printf "solana-%s" "$program"
fi fi
fi
} }
else else
solana_program() { solana_program() {