Skip to content

Commit

Permalink
fix: avoid using true as it's not always available
Browse files Browse the repository at this point in the history
  • Loading branch information
nick0602 committed Sep 8, 2022
1 parent 07a5e36 commit efef890
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ source "${BITRISE_STEP_SOURCE_DIR}"/inputs.sh
source "${BITRISE_STEP_SOURCE_DIR}"/helpers.sh

# Silently source, in case the cache has already restored rustup and/or cargo folders.
source "${HOME}/.cargo/env" &>/dev/null || true
CARGO_ENV=${HOME}/.cargo/env

if [[ -e $CARGO_ENV ]]; then
# shellcheck source=/dev/null
source "${CARGO_ENV}"
fi

# Keep track if it's first install to skip updates after the setup.
IS_FIRST_INSTALL=false
Expand Down

0 comments on commit efef890

Please sign in to comment.