Skip to content

Commit

Permalink
Check if $CARGO_HOME is set when $dest is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jan 30, 2019
1 parent 08c86c0 commit 1d944aa
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 1d944aa

Please sign in to comment.