We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d451b48 commit 7c1d436Copy full SHA for 7c1d436
gh-program-downloader
@@ -50,7 +50,22 @@ find_artifact() {
50
select_artifact() {
51
artifact=$(find_artifact)
52
if [ -z "$artifact" ]; then
53
- echo "$0 could not find asset from '$releases_url' (saved as '$releases') matching OS ('$os_re') and ARCH ('$arch_re')" >&2
+ if [ -n "$os_re" ]; then
54
+ os_message="OS ('$os_re')"
55
+ maybe_and=1
56
+ matching=1
57
+ fi
58
+ if [ -n "$arch_re" ]; then
59
+ arch_message="ARCH ('$arch_re')"
60
+ if [ -n "$maybe_and" ]; then
61
+ and=' and '
62
63
64
65
+ if [ -n "$matching" ]; then
66
+ matching='matching '
67
68
+ echo "$0 could not find asset from '$releases_url' (saved as '$releases') ${matching}${os_message}${and}${arch_message}" >&2
69
exit 1
70
fi
71
}
0 commit comments