fix: Correct add-genome script array handling

This commit is contained in:
Matteo Cherubini 2026-05-09 11:34:21 +02:00
parent 01769021fa
commit 59f2f00314

View file

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