Improved upgrade message
parent
64473a7863
commit
fa66b775a5
|
@ -1,9 +1,7 @@
|
||||||
import { version } from "../version.ts";
|
import { version } from "../version.ts";
|
||||||
|
|
||||||
export async function upgradeCommand() {
|
export async function upgradeCommand() {
|
||||||
console.log(
|
console.log("Now going to attempt an upgrade...");
|
||||||
"Now going to attempt an upgrade, this may involve downloading the Internet (but there may be cool spinners). Prepare!",
|
|
||||||
);
|
|
||||||
|
|
||||||
const p = Deno.run({
|
const p = Deno.run({
|
||||||
cmd: ["deno", "cache", "--reload", Deno.mainModule],
|
cmd: ["deno", "cache", "--reload", Deno.mainModule],
|
||||||
|
@ -29,7 +27,7 @@ export async function upgradeCommand() {
|
||||||
const newVersion = new TextDecoder().decode(rawVersion).trim();
|
const newVersion = new TextDecoder().decode(rawVersion).trim();
|
||||||
if (newVersion === version) {
|
if (newVersion === version) {
|
||||||
console.log(
|
console.log(
|
||||||
`Nope. I hate to tell you this, but it looks like we're still running ${newVersion}.\nThis was a bit of a futile exercise. Let's try again soon some time.`,
|
`Nope. I hate to tell you this, but it looks like we're still running ${newVersion} This was a bit of a futile exercise. Let's try again soon some time.`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
|
|
Loading…
Reference in New Issue