Skip to content

Commit

Permalink
Don’t fail to install magic if SHELLRC no exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 17, 2023
1 parent 5234e1b commit 37f85ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
* This repository also provides the `tea` GitHub Action.

# GitHub Action 0.15.0
# GitHub Action 0.15.1

```yaml
- uses: teaxyz/setup@v0
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ check_shell_magic() {
return 1
esac

if command -v grep >/dev/null 2>&1 && grep --fixed-strings "$__TEA_ONE_LINER" "$__TEA_SH_FILE" --silent; then
if test -f "__TEA_SH_FILE" && command -v grep >/dev/null && grep --fixed-strings "$__TEA_ONE_LINER" "$__TEA_SH_FILE" --silent; then
# shell magic already installed
return 0
fi
Expand Down

0 comments on commit 37f85ad

Please sign in to comment.