fix: Correct add-genome script array handling
This commit is contained in:
parent
01769021fa
commit
59f2f00314
1 changed files with 4 additions and 5 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# scripts/add-genome.sh
|
# scripts/add-genome.sh
|
||||||
# Helper to add a single new genome to the existing infrastructure.
|
# 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
|
set -euo pipefail
|
||||||
|
|
@ -20,10 +19,10 @@ fi
|
||||||
|
|
||||||
step "Adding New Genome: ${GENOME_NAME}"
|
step "Adding New Genome: ${GENOME_NAME}"
|
||||||
|
|
||||||
# Overwrite the GENOMES array for this session to process only the new one
|
# Sovrascrivo l'array per la sessione corrente
|
||||||
export GENOMES=("${GENOME_NAME}|${GENOME_DESC}")
|
GENOMES=("${GENOME_NAME}|${GENOME_DESC}")
|
||||||
|
|
||||||
# Trigger the standard genome setup logic
|
# FIX BUG 2: Uso source invece di bash per mantenere il context dell'array
|
||||||
bash "scripts/setup-genomes.sh"
|
source "scripts/setup-genomes.sh"
|
||||||
|
|
||||||
success "Genome '${GENOME_NAME}' added and linked successfully!"
|
success "Genome '${GENOME_NAME}' added and linked successfully!"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue