From 2228be615e0610c430bcbdd126cc0251364681de Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 20 Jun 2022 16:03:30 -0700 Subject: [PATCH] fix sane-secrets-update-keys script to work on shallow folders --- pkgs/sane-scripts/src/bin/sane-secrets-update-keys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/sane-scripts/src/bin/sane-secrets-update-keys b/pkgs/sane-scripts/src/bin/sane-secrets-update-keys index 9179e33f..390438b9 100755 --- a/pkgs/sane-scripts/src/bin/sane-secrets-update-keys +++ b/pkgs/sane-scripts/src/bin/sane-secrets-update-keys @@ -1,7 +1,7 @@ #!/usr/bin/env bash # after modifying .sops.yaml, run this to re-encode all secrets to the new keys # pass the base directory (under which *everything* is a secret) as argument -for i in $1/**/* +for i in $(find "$1" -print) do yes | sops updatekeys "$i" done