From 246be6c63cd978b54a71a27a36931b08e1dffb2b Mon Sep 17 00:00:00 2001 From: Giles Westwood Date: Wed, 27 Nov 2024 12:36:56 +0000 Subject: [PATCH] fix download path --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index 34fada9..a3888f1 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -90,7 +90,7 @@ install_version() { tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)" mkdir -p "$install_path" - cp -r "$ASDF_DOWNLOAD_PATH"/p2cli_r${version}_${platform}-${arch} "$install_path/$tool_cmd" + cp -r "$ASDF_DOWNLOAD_PATH"/p2cli_r${version}_${platform}-${arch}/$tool_cmd "$install_path/$tool_cmd" chmod +x "$install_path/$tool_cmd" test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable."