Skip to content

Commit

Permalink
Fix installation path when $CARGO_HOME is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Feb 3, 2019
1 parent 08c86c0 commit c268696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ fi
say_err "Target: $target"

if [ -z $dest ]; then
dest="$HOME/.cargo/bin"
if [ -n "$CARGO_HOME" ]; then
dest="$CARGO_HOME/bin"
else
dest="$HOME/.cargo/bin"
fi
fi

say_err "Installing to: $dest"
Expand Down

0 comments on commit c268696

Please sign in to comment.