Skip to content

Put file localization in bash loop #27

Description

@caalo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions