Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ac1e5c7

Browse files
committed
fix: fix upgade command
1 parent 858bdc1 commit ac1e5c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/upgrade.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { red } from 'https://deno.land/[email protected]/fmt/colors.ts'
22
import { dirname, join } from 'https://deno.land/[email protected]/path/mod.ts'
33
import { existsSync } from 'https://deno.land/[email protected]/fs/exists.ts'
4+
import { VERSION } from '../version.ts'
45

56
const versionMetaUrl = 'https://cdn.deno.land/aleph/meta/versions.json'
67

@@ -26,6 +27,11 @@ export default async function (version = 'latest') {
2627
}
2728
}
2829

30+
if (version === 'v' + VERSION) {
31+
console.log('Already up-to-date!')
32+
Deno.exit(0)
33+
}
34+
2935
const denoExecPath = Deno.execPath()
3036
const cmdExists = existsSync(join(dirname(denoExecPath), 'aleph'))
3137
const p = Deno.run({

0 commit comments

Comments
 (0)