Skip to content

Commit

Permalink
feat: Fix shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
LozanoMatheus committed Oct 25, 2023
1 parent 8773b4d commit 4f2df94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ os_name="$(get_os_name)"
arch="$(get_arch)"

release_file="${ASDF_DOWNLOAD_PATH}/${TOOL_NAME}"
if [ "$os_name" == "mac" ] && [ "$arch" != "arm64" ] ; then
download_release "${ASDF_INSTALL_VERSION}" "${os_name}" "386" "${release_file}"
else
download_release "${ASDF_INSTALL_VERSION}" "${os_name}" "${arch}" "${release_file}"
if [ "$os_name" == "mac" ] && [ "$arch" != "arm64" ]; then
download_release "${ASDF_INSTALL_VERSION}" "${os_name}" "386" "${release_file}"
else
download_release "${ASDF_INSTALL_VERSION}" "${os_name}" "${arch}" "${release_file}"
fi

\mv "${ASDF_DOWNLOAD_PATH}/${TOOL_NAME}" "${ASDF_DOWNLOAD_PATH}/${TOOL_SHORT_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ download_release() {
else
effective_cli_major_version=$cli_major_version
jfrog_cli_name=jfrog
fi
fi

url="https://releases.jfrog.io/artifactory/jfrog-cli/v${effective_cli_major_version}/${version}/jfrog-cli-${os_name}-${arch}/${jfrog_cli_name}"

Expand Down

0 comments on commit 4f2df94

Please sign in to comment.