Skip to content

Commit

Permalink
Merge pull request #157 from bgilbert/sort
Browse files Browse the repository at this point in the history
go: sort filenames in list of signing outputs
  • Loading branch information
bgilbert authored Jul 13, 2023
2 parents 407d83a + fbbfa7f commit c258129
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go/signing-ticket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@ EOF
After running this you should end up with a directory with files in it like:
{# create array of map values for sorting #}
{% set_global variant_values = [] %}
{% for _, variant in signing_variants %}
{% set_global variant_values = variant_values | concat(with=variant) %}
{% endfor %}
```
$ ls -1
{%- for _, variant in signing_variants %}
{%- for variant in variant_values | sort %}
{{ signing_base }}-{{ variant }}
{{ signing_base }}-{{ variant }}.asc
{%- endfor %}
Expand Down

0 comments on commit c258129

Please sign in to comment.