From dbf31b75d20e033de71cafda6545e8492ba7587a Mon Sep 17 00:00:00 2001 From: LeeW Date: Thu, 13 Feb 2025 14:29:32 +0100 Subject: [PATCH] refactor: better function names --- bin/update_sops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update_sops.sh b/bin/update_sops.sh index 00d54e4..2c4aafa 100755 --- a/bin/update_sops.sh +++ b/bin/update_sops.sh @@ -86,7 +86,7 @@ function fn_gpg_extract_uid(){ echo "${uid}" } -function fn_generate_sops_config(){ +function fn_sops_generate_config(){ # sops.yaml doc: https://github.com/getsops/sops?tab=readme-ov-file#using-sops-yaml-conf-to-select-kms-pgp-and-age-for-new-files # CAVEAT: dirty hacks, as DRY as feasible within bash @@ -146,7 +146,7 @@ fi # UPDATE SOPS CONFIG # TODO: remove the 'pushd;popd' workaround and make the functions aware of the dir being read pushd "${keyfiles_dir}" > /dev/null 2>&1 -(fn_generate_sops_config) > "${sops_config}" +(fn_sops_generate_config) > "${sops_config}" popd > /dev/null 2>&1 # VERIFY