diff --git a/bin/download b/bin/download index 4ab33e0..a4d67b2 100755 --- a/bin/download +++ b/bin/download @@ -16,8 +16,5 @@ download_release "$ASDF_INSTALL_VERSION" "$release_file" # Extract contents of tar.gz file into the download directory tar -zxvf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file" -echo $ASDF_DOWNLOAD_PATH -ls -la $ASDF_DOWNLOAD_PATH - # Remove the tar.gz file since we don't need to keep it rm "$release_file" diff --git a/lib/utils.bash b/lib/utils.bash index fd5edb3..8aed064 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -94,9 +94,9 @@ install_version() { ( mkdir -p "$install_path/bin" - cp -r "$ASDF_DOWNLOAD_PATH"/hugo "$install_path/bin" + cp -r "$ASDF_DOWNLOAD_PATH/$TOOL_NAME" "$install_path/bin/" - # TODO: Asert hugo executable exists. + # Asert hugo executable exists. local tool_cmd tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)" test -x "$install_path/bin/$tool_cmd" || fail "Expected $install_path/bin/$tool_cmd to be executable."