Skip to content

Commit

Permalink
Merge pull request #356 from gabrielhicks/main
Browse files Browse the repository at this point in the history
feat(fix): change 2.0 version check to versions starting with 2.
  • Loading branch information
POPPIN-FUMI authored Nov 20, 2024
2 parents 5894851 + f829c2c commit 17f6de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/solv/src/config/getSolanaCLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export type SolanaCLI = typeof SOLANA_CLI | typeof AGAVE_CLI
const getSolanaCLI = (): SolanaCLI => {
try {
const solanaVersion = getSolanaVersion()
const hasVersion20 = solanaVersion.includes('2.0')
if (hasVersion20) {
const hasVersion2 = solanaVersion.startsWith('2.')
if (hasVersion2) {
return AGAVE_CLI
}
return SOLANA_CLI
Expand Down

0 comments on commit 17f6de8

Please sign in to comment.