ide: a release address that is not https is refused in words

The refusal happened, but its sentence went to the first download's
silenced stderr, so the person saw only "downloading" and an exit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-12-01 20:41:46 +00:00
1 parent fa5b6499f8
commit 081f240c76
1 file changed
+5
+5
View File
@@ -242,6 +242,11 @@ from_release() {
[[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-beta\.[0-9]+)?$ ]] || die "not a version: $version"
base="${LLEMBAS_IDE_RELEASE_BASE:-$FORGE/$SLUG/releases/download}"
base="${base%/}/$tag"
# Said here, in words: the first download below keeps curl quiet, and would keep this quiet too.
case "$base" in
https://* | file:///*) ;;
*) die "refusing to download from $base: only https:// (or a local file://) is used — nothing installed" ;;
esac
tarball="llembas-ide-$version.tar.gz"
if [ "$DRY" = 1 ]; then
say "LLeMbas IDE $version (dry run: nothing is downloaded or written)"