Skip to content

Commit 320fa5c

Browse files
committed
Fix setting the PATH symlink to a precise version
1 parent b233371 commit 320fa5c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44

5-
# GitHub Action 0.10.0
5+
# GitHub Action 0.10.1
66

77
This repository also provides the `tea` GitHub Action.
88

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ if ! test -f "$TEA_DESTDIR/tea.xyz/v$TEA_VERSION/bin/tea"; then
469469
else
470470
fix_links # be proactive in repairing the user installation just in case that's what they ran this for
471471
TEA_IS_CURRENT=1
472-
TEA_EXENAME="$TEA_DESTDIR/tea.xyz/v$TEA_VERSION/bin/tea"
472+
TEA_VERSION_MAJOR="$(echo "$TEA_VERSION" | cut -d. -f1)"
473+
TEA_EXENAME="$TEA_DESTDIR/tea.xyz/v$TEA_VERSION_MAJOR/bin/tea"
473474
fi
474475

475476
if ! test -d "$TEA_DESTDIR/tea.xyz/var/pantry"; then

0 commit comments

Comments
 (0)