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:
1 file changed
+5
@@ -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)"
|
||||
|
||||
Reference in new issue
Block a user