cli: Run command considers config (#755)
This commit is contained in:
parent
68a6beb335
commit
beace2c000
|
@ -1945,6 +1945,8 @@ fn run(cfg_override: &ConfigOverride, script: String) -> Result<()> {
|
||||||
let exit = std::process::Command::new("bash")
|
let exit = std::process::Command::new("bash")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.arg(&script)
|
.arg(&script)
|
||||||
|
.env("ANCHOR_PROVIDER_URL", cfg.provider.cluster.url())
|
||||||
|
.env("ANCHOR_WALLET", cfg.provider.wallet.to_string())
|
||||||
.stdout(Stdio::inherit())
|
.stdout(Stdio::inherit())
|
||||||
.stderr(Stdio::inherit())
|
.stderr(Stdio::inherit())
|
||||||
.output()
|
.output()
|
||||||
|
|
Loading…
Reference in New Issue