From b2c3bf3b50cf3f8df359b3d716ba469409c6a407 Mon Sep 17 00:00:00 2001 From: Yasser Saleemi Date: Tue, 6 Feb 2024 15:31:32 +0000 Subject: [PATCH] fix: Rename variables from MISE_ to ASDF_ So that asdf testing works --- bin/download | 8 ++++---- bin/install | 2 +- lib/utils.bash | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/download b/bin/download index 5f027ba..9c7c024 100755 --- a/bin/download +++ b/bin/download @@ -8,15 +8,15 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")") # shellcheck source=./lib/utils.bash source "${plugin_dir}/lib/utils.bash" -mkdir -p "$MISE_DOWNLOAD_PATH" +mkdir -p "$ASDF_DOWNLOAD_PATH" -release_file="$MISE_DOWNLOAD_PATH/$TOOL_NAME-$MISE_INSTALL_VERSION.zip" +release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.zip" # Download tar.gz file to the download directory -download_release "$MISE_INSTALL_VERSION" "$release_file" +download_release "$ASDF_INSTALL_VERSION" "$release_file" # Extract contents of tar.gz file into the download directory -unzip "$release_file" -d "$MISE_DOWNLOAD_PATH" +unzip "$release_file" -d "$ASDF_DOWNLOAD_PATH" # Remove the tar.gz file since we don't need to keep it rm "$release_file" diff --git a/bin/install b/bin/install index 4705286..6ca759a 100755 --- a/bin/install +++ b/bin/install @@ -8,4 +8,4 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")") # shellcheck source=./lib/utils.bash source "${plugin_dir}/lib/utils.bash" -install_version "$MISE_INSTALL_TYPE" "$MISE_INSTALL_VERSION" "$MISE_INSTALL_PATH" +install_version "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH" diff --git a/lib/utils.bash b/lib/utils.bash index 1cc4a56..10ae3e2 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -67,7 +67,7 @@ install_version() { ( mkdir -p "$install_path" - cp -r "$MISE_DOWNLOAD_PATH"/* "$install_path" + cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path" local tool_cmd tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)"