Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde committed Sep 29, 2024
1 parent 2514d9e commit be6b524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ mkdir -p "$ASDF_DOWNLOAD_PATH"
ext_name=".tar.gz"
case $platform in
'MINGW64'*)
ext_name=".zip"
;;
ext_name=".zip"
;;
esac

release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION$ext_name"
Expand All @@ -23,9 +23,9 @@ download_release "$ASDF_INSTALL_VERSION" "$release_file"

# Extract contents of tar.gz file into the download directory
if [[ $ext_name == ".zip" ]]; then
unzip -o "$release_file" -d "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
unzip -o "$release_file" -d "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
else
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
fi

# Remove the tar.gz file since we don't need to keep it
Expand Down

0 comments on commit be6b524

Please sign in to comment.