From 320fa5c94c11473303d8828bbfb38d9aea6b0bd6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 4 Jan 2023 10:35:50 -0500 Subject: [PATCH] Fix setting the PATH symlink to a precise version --- README.md | 2 +- install.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40e76b0d..0ff96cf3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`. -# GitHub Action 0.10.0 +# GitHub Action 0.10.1 This repository also provides the `tea` GitHub Action. diff --git a/install.sh b/install.sh index cda23c9a..7f6ec2ab 100755 --- a/install.sh +++ b/install.sh @@ -469,7 +469,8 @@ if ! test -f "$TEA_DESTDIR/tea.xyz/v$TEA_VERSION/bin/tea"; then else fix_links # be proactive in repairing the user installation just in case that's what they ran this for TEA_IS_CURRENT=1 - TEA_EXENAME="$TEA_DESTDIR/tea.xyz/v$TEA_VERSION/bin/tea" + TEA_VERSION_MAJOR="$(echo "$TEA_VERSION" | cut -d. -f1)" + TEA_EXENAME="$TEA_DESTDIR/tea.xyz/v$TEA_VERSION_MAJOR/bin/tea" fi if ! test -d "$TEA_DESTDIR/tea.xyz/var/pantry"; then