Skip to content

Commit

Permalink
fix: Rename variables from MISE_ to ASDF_
Browse files Browse the repository at this point in the history
So that asdf testing works
  • Loading branch information
yasn77 committed Feb 6, 2024
1 parent d841e66 commit b2c3bf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit b2c3bf3

Please sign in to comment.