secrets: fix sorting in setup-secrets
Now the bash globbing sort order equals the nix sort order (order of `processedFiles`) Previously, `comm` could fail with error `unsorted` on specific secrets names.
This commit is contained in:
parent
0d58dadf0a
commit
0ba6c63670
@ -173,6 +173,10 @@ in {
|
|||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
|
# Use the same sort order for globbing and sorting as in Nix attrsets.
|
||||||
|
# Required for `comm` below.
|
||||||
|
export LC_COLLATE=C
|
||||||
|
|
||||||
${optionalString cfg.generateSecrets ''
|
${optionalString cfg.generateSecrets ''
|
||||||
mkdir -p "${cfg.secretsDir}"
|
mkdir -p "${cfg.secretsDir}"
|
||||||
cd "${cfg.secretsDir}"
|
cd "${cfg.secretsDir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user