Skip to content

Commit

Permalink
switching to echo to /bin/echo for pantry install
Browse files Browse the repository at this point in the history
While installing `tea` on `linux/amd64` hosts, the pantry sync returns
code 139, failing to complete the installation. While no such errors are
generated on `linux/arm64` systems.
The pantry sync is performed by passing `--sync --cd / echo` to the tea
CLI. The `echo` is a shell builtin, while `/bin/echo` is a binary.
Let's use the proper binary.

* replacing `echo` with `/bin/echo` in `install.sh` pantry sync command

Closes #148
  • Loading branch information
anapsix authored and mxcl committed Apr 26, 2023
1 parent 6ab37b3 commit d254d26
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.16.0
# GitHub Action 0.16.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 @@ -498,7 +498,7 @@ elif command -v git >/dev/null 2>&1; then
title="syncing"
fi

gum_func spin --title "$title pantry" -- "$TEA_EXENAME" --sync --cd / echo
gum_func spin --title "$title pantry" -- "$TEA_EXENAME" --sync --cd / /bin/echo

case $MODE in
install)
Expand Down

0 comments on commit d254d26

Please sign in to comment.