From da080f786597c05a04aa7b298a87fdba542e3408 Mon Sep 17 00:00:00 2001 From: LeeW Date: Wed, 5 Mar 2025 14:19:21 +0100 Subject: [PATCH] workaround for multiple non-sops secrets files --- bin/update_sops.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/update_sops.sh b/bin/update_sops.sh index f905c58..f2bf8cf 100755 --- a/bin/update_sops.sh +++ b/bin/update_sops.sh @@ -113,7 +113,8 @@ fn_sops_updatekeys_and_verify(){ # "update the keys of SOPS files using the config file" >&2 echo "# RUN: sops updatekeys ${sops_enc_file}" - sops updatekeys "${sops_enc_file}" + # HAAAACK: loop through all passed-in files, ignore any errors, always say "yes" -> rely on git diff to verify! + sops updatekeys -y "${sops_enc_file}" || echo "SKIPPING" } function main(){