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)"