generated from jhudsl/OTTR_Template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Suggestion by Ash to put file localization mv commands in a bash loop to have less redundancy in code.
Yes, but unlike an array it has to be done by key, so it's a little goofy. This should do the trick:
ref_files=("~{refGenome.ref_fasta}" "~{refGenome.ref_fasta_index}" "~{refGenome.ref_dict}" "~{refGenome.ref_amb}" "~{refGenome.ref_ann}" "~{refGenome.ref_bwt}" "~{refGenome.ref_pac}" "~{refGenome.ref_sa}")
for ref_file in "${ref_files[@]}"
do
mv "$ref_file" .
done
Originally posted by @aofarrel in #18 (comment)
Metadata
Metadata
Assignees
Labels
No labels