Skip to content

Commit

Permalink
fix: download path changed to standard
Browse files Browse the repository at this point in the history
  • Loading branch information
kogeletey committed Nov 27, 2023
1 parent c295aef commit 3bba30d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ download_release "$ASDF_INSTALL_VERSION" "$release_file"
# Extract contents of tar.gz file into the download directory
tar --use-compress-program=unzstd -xvf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"

# Move from bin to standart directory and change rules to executable
mv "$ASDF_DOWNLOAD_PATH/bin/$TOOL_NAME" "$ASDF_DOWNLOAD_PATH/$TOOL_NAME"
chmod +x "$ASDF_DOWNLOAD_PATH/$TOOL_NAME"
# Remove the tar.gz file since we don't need to keep it
rm "$release_file"

mv "$ASDF_DOWNLOAD_PATH/usr/bin/$TOOL_NAME" "$ASDF_DOWNLOAD_PATH/$TOOL_NAME"
chmod +x "$ASDF_DOWNLOAD_PATH/$TOOL_NAME"

0 comments on commit 3bba30d

Please sign in to comment.