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 28f2662
Showing 1 changed file with 1 addition and 1 deletion.
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 28f2662

Please sign in to comment.