Add the automatic replacement of domestic source function of pake-cli
This commit is contained in:
2
bin/helpers/rust.ts
vendored
2
bin/helpers/rust.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user