Skip to content

Commit

Permalink
fix: proper wrapping for envman commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nick0602 committed Aug 9, 2022
1 parent 1ff9372 commit c99b3fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ set_default_rustup() {
}

export_rust_envs() {
envman run rustup -V | envman add --key RUSTUP_VERSION
envman run rustc -V | envman add --key RUSTC_VERSION
envman run cargo -V | envman add --key CARGO_VERSION
envman run rustup -V | envman add --key "RUSTUP_VERSION"
envman run rustc -V | envman add --key "RUSTC_VERSION"
envman run cargo -V | envman add --key "CARGO_VERSION"
}

print_rust_envs() {
printf "\n\nExported ENV vars:\n"
envman run bash -c printf "RUSTUP_VERSION: ${RUSTUP_VERSION}"
envman run bash -c printf "RUSTC_VERSION: ${RUSTC_VERSION}"
envman run bash -c printf "CARGO_VERSION: ${CARGO_VERSION}"
envman run bash -c 'printf "RUSTUP_VERSION: ${RUSTUP_VERSION}"'
envman run bash -c 'printf "RUSTC_VERSION: ${RUSTC_VERSION}"'
envman run bash -c 'printf "CARGO_VERSION: ${CARGO_VERSION}"'
}

# Don't forget that $BITRISE_CACHE_INCLUDE_PATHS separates paths with `\n`.
Expand Down

0 comments on commit c99b3fe

Please sign in to comment.