Skip to content

Commit 37f85ad

Browse files
committed
Don’t fail to install magic if SHELLRC no exist
1 parent 5234e1b commit 37f85ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44
* This repository also provides the `tea` GitHub Action.
55

6-
# GitHub Action 0.15.0
6+
# GitHub Action 0.15.1
77

88
```yaml
99
- uses: teaxyz/setup@v0

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ check_shell_magic() {
443443
return 1
444444
esac
445445

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

0 commit comments

Comments
 (0)