Skip to content

Commit

Permalink
Merge pull request #114 from timhae/newlines
Browse files Browse the repository at this point in the history
remove empty lines in recipient keys file
  • Loading branch information
ryantm authored May 16, 2022
2 parents 0d5e59e + 0e2fb13 commit 7e5e58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/agenix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ trap "cleanup" 0 2 3 15
function edit {
FILE=$1
KEYS=$((${nixInstantiate} --eval -E "(let rules = import $RULES; in builtins.concatStringsSep \"\n\" rules.\"$FILE\".publicKeys)" | ${sedBin} 's/"//g' | ${sedBin} 's/\\n/\n/g') || exit 1)
KEYS=$((${nixInstantiate} --eval -E "(let rules = import $RULES; in builtins.concatStringsSep \"\n\" rules.\"$FILE\".publicKeys)" | ${sedBin} 's/"//g' | ${sedBin} 's/\\n/\n/g') | ${sedBin} '/^$/d' || exit 1)
if [ -z "$KEYS" ]
then
Expand Down

0 comments on commit 7e5e58b

Please sign in to comment.