Skip to content

Commit

Permalink
fix: declare associative arrays (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Sep 2, 2022
1 parent c613ed2 commit 90ae449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake/script.py
Expand Up @@ -351,7 +351,7 @@ def encode_snakemake(self, smk: Snakemake) -> str:
main_aa[var] = val

arrays.append(f"{self.prefix}={self.dict_to_aa(main_aa)}")
return "\n".join(arrays)
return "\n".join([f"declare -A {aa}" for aa in arrays])

@staticmethod
def dict_to_aa(d: dict) -> str:
Expand Down

0 comments on commit 90ae449

Please sign in to comment.