use $CARGO_HOME for installation if set (#5219)

This commit is contained in:
Coco authored and GitHub committed 2026-01-16 16:33:45 -08:00
1 parent 35e289fe28
commit d6629acd84
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ else
fi fi
bin_dir="$dx_install/bin" bin_dir="$dx_install/bin"
exe="$bin_dir/dx" exe="$bin_dir/dx"
cargo_bin_dir="$HOME/.cargo/bin" cargo_bin_dir="${CARGO_HOME:-$HOME/.cargo}/bin"
cargo_bin_exe="$cargo_bin_dir/dx" cargo_bin_exe="$cargo_bin_dir/dx"
if [ ! -d "$bin_dir" ]; then if [ ! -d "$bin_dir" ]; then