Skip to content

Commit

Permalink
chore: fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
junminahn committed Sep 29, 2024
1 parent b66a17a commit ec0d518
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python 3.12.1
shellcheck 0.9.0
shfmt 3.6.0
database-tools 0.8.2
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SHELL := /usr/bin/env bash

.PHONY: asdf-install
asdf-install:
cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true
asdf plugin add database-tools https://github.com/egose/asdf-database-tools.git || true
asdf plugin-update --all
asdf install
asdf reshim
4 changes: 2 additions & 2 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ install_tool() {

filename="${platform}-${arch}.tar.gz"
download_path="v${version}/${filename}"
tempfile="${tempdir}/${download_path}"
tempfile="${tempdir}/${filename}"
download_url="${base_download_url}/${download_path}"

echo "download_url: $download_url"
echo "Download URL: $download_url"
curl -L "${download_url}" -o "${tempfile}"

echo "Creating bin install directory"
Expand Down

0 comments on commit ec0d518

Please sign in to comment.