Skip to content

Commit

Permalink
feat(fix): change 2.0 version check to versions starting with 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielhicks committed Nov 19, 2024
1 parent 6fbe7cf commit f829c2c
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 f829c2c

Please sign in to comment.