From 80463af4f84a2ef27bfcac15b4bdddc3ff91f12b Mon Sep 17 00:00:00 2001 From: Dave Sargent Date: Thu, 23 May 2024 14:57:24 -0700 Subject: [PATCH] Remove commented out code --- bin/download | 17 +---------------- lib/utils.bash | 4 ---- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/bin/download b/bin/download index 72e7c13..b83b867 100755 --- a/bin/download +++ b/bin/download @@ -10,22 +10,7 @@ source "${plugin_dir}/lib/utils.bash" mkdir -p "$ASDF_DOWNLOAD_PATH" -## url="$GH_REPO/releases/download/v${version}/tealdeer-linux-x86_64-musl" - -# TODO: Adapt this to proper extension and adapt extracting strategy. -#release_file="tealdeer" release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION" -# Download tar.gz file to the download directory +# Download file to the download directory download_release "$ASDF_INSTALL_VERSION" "$release_file" - -#echo "*** release_file is ***" -#echo $release_file - -# # Extract contents of tar.gz file into the download directory -# tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file" - -# # 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 1e2e918..a4f1e1b 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -30,8 +30,6 @@ list_github_tags() { } list_all_versions() { - # TODO: Adapt this. By default we simply list the tag names from GitHub releases. - # Change this function if tealdeer has other means of determining installable versions. list_github_tags } @@ -60,10 +58,8 @@ install_version() { cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path" mv "$install_path/${TOOL_NAME}-${version}" "$install_path/${TOOL_NAME}" - # TODO: Assert tealdeer executable exists. local tool_cmd tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)" - ls -alh "$install_path/${tool_cmd}" test -x "$install_path/${tool_cmd}" || fail "Expected $install_path/$tool_cmd to be executable." echo "$TOOL_NAME $version installation was successful!"