Add the automatic replacement of domestic source function of pake-cli

This commit is contained in:
Tlntin
2023-04-08 12:27:11 +08:00
parent a71805c60a
commit 902814a78c
6 changed files with 3 additions and 8 deletions

2
bin/helpers/rust.ts vendored
View File

@@ -29,5 +29,5 @@ export async function installRust() {
}
export function checkRustInstalled() {
return shelljs.exec('source "$HOME/.cargo/env" && rustc --version', { silent: true }).code === 0;
return shelljs.exec('rustc --version', { silent: true }).code === 0;
}