git: dd2e9aa21a45 - releng/15.1 - bsdinstall: script: Fix scripted DISTRIBUTIONS

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sat, 06 Jun 2026 02:24:29 UTC
The branch releng/15.1 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=dd2e9aa21a45f746a57d386bb315d58590e3d716

commit dd2e9aa21a45f746a57d386bb315d58590e3d716
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2026-05-29 02:09:49 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-06-06 02:22:28 +0000

    bsdinstall: script: Fix scripted DISTRIBUTIONS
    
    Restore exporting DISTRIBUTIONS to make it available to other scripts.
    
    Approved by:    re (cperciva)
    Reviewed by:    imp, asomers
    Fixes:          dc14ae4217a0 ("bsdinstall: do pkgbase installations with the "script" command")
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D57319
    
    (cherry picked from commit 283959bbe0863917c4fc3200a92d1055a4c89bdc)
    (cherry picked from commit 0e3c9cbee4ac735b7c19f3cb719b65f960be0b23)
---
 usr.sbin/bsdinstall/scripts/script | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script
index 93d07c7899c3..4c792d80df6a 100755
--- a/usr.sbin/bsdinstall/scripts/script
+++ b/usr.sbin/bsdinstall/scripts/script
@@ -50,6 +50,7 @@ f_include $BSDCFG_SHARE/variable.subr
 ############################################################ GLOBALS
 
 : ${TMPDIR:="/tmp"}
+: ${DISTRIBUTIONS=""}; export DISTRIBUTIONS
 
 #
 # Strings that should be moved to an i18n file and loaded with f_include_lang()