From 59f2f00314551fe51264cc6e7fe389772287c660 Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Sat, 9 May 2026 11:34:21 +0200 Subject: [PATCH] fix: Correct add-genome script array handling --- scripts/add-genome.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/add-genome.sh b/scripts/add-genome.sh index 09e0aa1..fc69296 100644 --- a/scripts/add-genome.sh +++ b/scripts/add-genome.sh @@ -2,7 +2,6 @@ # ============================================================================= # scripts/add-genome.sh # Helper to add a single new genome to the existing infrastructure. -# Usage: make add-genome NAME=my-new-genome DESC="Description here" # ============================================================================= set -euo pipefail @@ -20,10 +19,10 @@ fi step "Adding New Genome: ${GENOME_NAME}" -# Overwrite the GENOMES array for this session to process only the new one -export GENOMES=("${GENOME_NAME}|${GENOME_DESC}") +# Sovrascrivo l'array per la sessione corrente +GENOMES=("${GENOME_NAME}|${GENOME_DESC}") -# Trigger the standard genome setup logic -bash "scripts/setup-genomes.sh" +# FIX BUG 2: Uso source invece di bash per mantenere il context dell'array +source "scripts/setup-genomes.sh" success "Genome '${GENOME_NAME}' added and linked successfully!"