From d6629acd849aa5aad6ee03f47391e8dfa1870ba3 Mon Sep 17 00:00:00 2001 From: Coco Date: Sat, 17 Jan 2026 08:33:45 +0800 Subject: [PATCH] use $CARGO_HOME for installation if set (#5219) --- .github/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/install.sh b/.github/install.sh index 2a84d79d4..4b5008e60 100755 --- a/.github/install.sh +++ b/.github/install.sh @@ -93,7 +93,7 @@ else fi bin_dir="$dx_install/bin" 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" if [ ! -d "$bin_dir" ]; then