Skip to content

Commit

Permalink
Small ec2-cargo fix (shotover#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored May 8, 2024
1 parent a9c6ab1 commit 78b0173
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ec2-cargo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ pub struct Args {

#[tokio::main]
async fn main() {
// Needed to disable anyhow stacktraces by default
if std::env::var("RUST_LIB_BACKTRACE").is_err() {
std::env::set_var("RUST_LIB_BACKTRACE", "0");
}

let (non_blocking, _guard) = tracing_appender::non_blocking(std::io::stdout());
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
Expand Down Expand Up @@ -82,13 +87,13 @@ if [ "$(uname -m)" = "aarch64" ]; then
curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
unzip -q awscliv2.zip
sudo ./aws/install
else
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
unzip -q awscliv2.zip
sudo ./aws/install
fi
"#).await;
Expand Down

0 comments on commit 78b0173

Please sign in to comment.