Skip to content

Commit

Permalink
feat(install): change bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoHsu committed May 23, 2021
1 parent 7bd3a03 commit a203d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit a203d26

Please sign in to comment.