Skip to content

Commit

Permalink
Merge branch 'trevor/new-featv3-cosmos-oct-28' into dan/more-cw-agent…
Browse files Browse the repository at this point in the history
…-remediations
  • Loading branch information
daniel-savu committed Nov 21, 2023
2 parents 895f111 + 3987688 commit a5c502f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rust/utils/run-locally/src/cosmos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fn launch_cosmos_validator(
.hyp_env("ORIGINCHAINNAME", agent_config.name)
.hyp_env("REORGPERIOD", "100")
.hyp_env("DB", validator_base_db.to_str().unwrap())
.hyp_env("METRICS", agent_config.domain_id.to_string())
.hyp_env("METRICSPORT", agent_config.domain_id.to_string())
.hyp_env("VALIDATOR_SIGNER_TYPE", agent_config.signer.typ)
.hyp_env("VALIDATOR_KEY", agent_config.signer.key.clone())
.hyp_env("VALIDATOR_PREFIX", "osmo")
Expand Down
14 changes: 8 additions & 6 deletions rust/utils/run-locally/src/cosmos/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ use crate::program::Program;
use crate::utils::TaskHandle;

pub(crate) fn sed(from: &str, to: &str, file: &str) {
Program::new("sed")
.raw_arg("-i")
// Temporary fix to get `sed` working on linux
// Note that this breaks the script on mac
// .cmd("")
let mut program = Program::new("sed").raw_arg("-i");

if cfg!(target_os = "macos") {
program = program.cmd("");
}

program
.cmd(format!("s/{from}/{to}/g"))
.cmd(file)
.run()
.join();
.join()
}

pub(crate) fn untar(output: &str, dir: &str) {
Expand Down

0 comments on commit a5c502f

Please sign in to comment.