From 081f240c76f66feea6b55c21dec04414b3eaced4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 1 Dec 2026 20:41:46 +0000 Subject: [PATCH] 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 --- ide/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ide/install.sh b/ide/install.sh index 069e28d..7087b78 100755 --- a/ide/install.sh +++ b/ide/install.sh @@ -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)"