Fix bug introduced in dd7e167bf which prevented secret to be correctly saved

This commit is contained in:
2025-06-01 23:41:44 +02:00
parent 19fd9f4d83
commit 05555a47c7

View File

@@ -47,7 +47,7 @@ main() {
filename="$(jq -r .filename <<<"${obj}")"
# Default output file name
output_file="${secrets_dir}/${output_file}"
output_file="${secrets_dir}/${local_secret}"
# If filename is specified in json, use it; otherwise, use the local_secret as the filename
if [[ -n ${filename} && ${filename} != "null" ]]; then