Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg3nt committed May 23, 2024
1 parent c76b4d8 commit 80463af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
17 changes: 1 addition & 16 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -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"


4 changes: 0 additions & 4 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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!"
Expand Down

0 comments on commit 80463af

Please sign in to comment.