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