From c268696ab9f054e1092f195dddeead2420c04261 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Wed, 30 Jan 2019 01:07:58 -0800 Subject: [PATCH] Fix installation path when $CARGO_HOME is set --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a3f55ea..147b8e6 100755 --- a/install.sh +++ b/install.sh @@ -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"