diff --git a/bin/update_sops.sh b/bin/update_sops.sh index 5ff84f6..425d4a4 100755 --- a/bin/update_sops.sh +++ b/bin/update_sops.sh @@ -171,7 +171,7 @@ function main(){ keyfiles_dir="$(realpath "${keyfiles_dir}")" test -d "${keyfiles_dir}" || (echo "E: specify dir containing keyfiles; invalid dir: '${keyfiles_dir}'" && exit 1) sops_config="" - if [[ -n "${sops_cfg_dir:-}" ]]; then + if [[ -n "${sops_config_dir:-}" ]]; then sops_config_dir="$(realpath "${sops_config_dir}")" test -d "${sops_config_dir}" || (echo "E: specify dir containing .sops.yaml, invalid dir: '${sops_config_dir}'" && exit 1) sops_config="${sops_config_dir}/.sops.yaml"