fix(release): exclude scripts/release/ from sourced arrays

Adding scripts/release/ made generate_arrays emit files_release.sh, which would
source the build tool make_release.sh at runtime (it runs git archive at load —
wrong + harmful). Skip release/ in the folder scan (like system/ and unused/),
remove the orphaned files_release.sh, and regenerate the meta-list. fetch.sh stays
sourced; make_release is in no array.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-25 18:10:42 +01:00
parent d9b76db157
commit c78391753b
3 changed files with 3 additions and 13 deletions

View File

@ -1,9 +0,0 @@
#!/bin/bash
# This file is auto-generated by generate_arrays.sh
# Do not edit manually - run './scripts/source/files/generate_arrays.sh run' to regenerate
release_scripts=(
"release/make_release.sh"
)

View File

@ -22,7 +22,6 @@ source_scripts=(
"source/files/arrays/files_migrate.sh" "source/files/arrays/files_migrate.sh"
"source/files/arrays/files_network.sh" "source/files/arrays/files_network.sh"
"source/files/arrays/files_os.sh" "source/files/arrays/files_os.sh"
"source/files/arrays/files_release.sh"
"source/files/arrays/files_restore.sh" "source/files/arrays/files_restore.sh"
"source/files/arrays/files_setup.sh" "source/files/arrays/files_setup.sh"
"source/files/arrays/files_source.sh" "source/files/arrays/files_source.sh"

View File

@ -66,9 +66,9 @@ for folder in "$SCRIPTS_DIR"/*; do
folder_name=$(basename "$folder") folder_name=$(basename "$folder")
# Skip folders that aren't sourced function libraries: the dead-code # Skip folders that aren't sourced function libraries: the dead-code
# graveyard, and system/ (standalone root-owned helpers installed to # graveyard; system/ (standalone root-owned helpers invoked via sudo); and
# /usr/local/sbin and invoked via sudo — never sourced into the runtime). # release/ (build tooling — make_release.sh runs at build time, never sourced).
if [ "$folder_name" = "unused" ] || [ "$folder_name" = "system" ]; then if [ "$folder_name" = "unused" ] || [ "$folder_name" = "system" ] || [ "$folder_name" = "release" ]; then
isNotice "Skipping $folder_name/" isNotice "Skipping $folder_name/"
continue continue
fi fi