Skip to content

Commit

Permalink
chore: upgrade tailcall
Browse files Browse the repository at this point in the history
  • Loading branch information
MedHeikelBouzayene committed Jan 15, 2025
1 parent 8038b5f commit 705a186
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ set -e

# Get version argument from command line
VERSION=${1:-"latest"}
echo $VERSION

BASE_URL="https://github.com/MedHeikelBouzayene/tailcall/releases/download/"
BASE_URL="https://github.com/MedHeikelBouzayene/tailcall/releases/download"

if [ "$VERSION" = "latest" ]; then
VERSION=$(curl --silent "https://api.github.com/repos/tailcallhq/tailcall/releases/latest" | jq -r '.tag_name')
Expand Down Expand Up @@ -40,7 +41,7 @@ fi

# Derive download URL based on detected OS and architecture
URL="$BASE_URL/$VERSION/tailcall-${ARCH}-${OS}"

echo $URL
# Prepare versioned directory for download
INSTALL_DIR="$HOME/.tailcall/lib/$VERSION"
mkdir -p "$INSTALL_DIR"
Expand Down

0 comments on commit 705a186

Please sign in to comment.