From a552532c40ef82fad721f1ed0043fe434e9c6622 Mon Sep 17 00:00:00 2001 From: LeeW Date: Fri, 7 Mar 2025 14:32:42 +0100 Subject: [PATCH] adds auto-find for secrets files, simplifies docs --- verify/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/verify/test.sh b/verify/test.sh index c5b3665..d697f7a 100755 --- a/verify/test.sh +++ b/verify/test.sh @@ -90,11 +90,12 @@ if [[ 1 -eq 1 ]]; then set +e # move 'set -x' within the sub-shell, otherwise all output dumped to tty # ... bug: stderr still gets printed, not sure why. E.g. '# RUN: sops updatekeys mock_secrets.yaml' - _out="$(set -x; ../bin/update_sops.sh -c "${PWD}" --find_secrets 2>&1 )" + _out="$(set -x; ../bin/update_sops.sh -c "${PWD}" --find_secrets "${secrets_file}" 2>&1 )" # re-enable strict set -e set +x grep "${_tmp_mock_secrets_filepath}" <<< "${_out}" + grep "${secrets_file}" <<< "${_out}" set -e # TEARDOWN rm -rf "${_tmp_mock_secrets_filepath}"