Skip to content

Commit

Permalink
test -d resolves the symlink (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Sep 11, 2022
1 parent bbdbaa9 commit 6797967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**WARNING** PRE-RELEASE SOFTWARE! DO NOT USE!

# GitHub Action 0.4.0
# GitHub Action 0.4.1

This repository also provides the `tea` GitHub Action.

Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ cd "$PREFIX"
if test ! -x tea.xyz/v$v/bin/tea -o ! -f tea.xyz/v$v/bin/tea -o -n "$FORCE"; then
$CURL "https://$TEA_SECRET/tea.xyz/$MIDFIX/v$v.tar.gz" | tar xz
cd tea.xyz
if test ! -d v\*; then
# ^^ is directory if we’re a self-installed source distribution
if test -L v\* -o ! -e v\*; then
# if v* is a directory then this is a self-installed source distribution
# in that case we don’t do this symlink
ln -sf "v$v" v\*
fi
else
Expand Down

0 comments on commit 6797967

Please sign in to comment.