Skip to content

Commit f670086

Browse files
committed
error msg for this case
1 parent 4745e48 commit f670086

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44

5-
# GitHub Action 0.6.10
5+
# GitHub Action 0.6.11
66

77
This repository also provides the `tea` GitHub Action.
88

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ welcome() {
204204
get_tea_version() {
205205
# shellcheck disable=SC2086
206206
v="$(gum spin --show-output --title 'determing tea version' -- $CURL "https://dist.tea.xyz/tea.xyz/$MIDFIX/versions.txt" | tail -n1)"
207+
if test -z "$v"; then
208+
echo "failed to get latest tea version" >&2
209+
exit 1
210+
fi
207211
}
208212

209213
fix_links() {

0 commit comments

Comments
 (0)