mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +00:00
Set PATH internally when cargo home is not available
This commit is contained in:
4
main.sh
4
main.sh
@@ -128,8 +128,10 @@ case "${OSTYPE}" in
|
||||
cygwin* | msys*) exe=".exe" ;;
|
||||
esac
|
||||
|
||||
cargo_bin="${CARGO_HOME:-$HOME/.cargo}/bin"
|
||||
cargo_bin="${CARGO_HOME:-"$HOME/.cargo"}/bin"
|
||||
mkdir -p "${cargo_bin}"
|
||||
# For version check. It is intentional that this is not wrote in GITHUB_ENV.
|
||||
export PATH="${cargo_bin}:$PATH"
|
||||
|
||||
for tool in "${tools[@]}"; do
|
||||
if [[ "${tool}" == *"@"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user