From 990a23be281ee13e33c165f446d2ac3c0c88299c Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Sat, 21 Nov 2026 13:24:26 +0000 Subject: szecret create-local /: a new store's key goes in a bucket this machine reads; plain for an existing store or no buckets --- secrets/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'secrets/common.sh') diff --git a/secrets/common.sh b/secrets/common.sh index adf5488..f11d902 100644 --- a/secrets/common.sh +++ b/secrets/common.sh @@ -307,7 +307,7 @@ read_local_metadata() { if [[ -z "${_metadata_store}" || -z "${_metadata_pubkey}" ]]; then >&2 echo "ERROR: Invalid metadata format in ${metadata_file}" - >&2 echo "Run 'szecret create-local ' to recreate" + >&2 echo "Run 'szecret create-local [/] ' to recreate" return 1 fi } @@ -316,7 +316,7 @@ get_local_public_key() { local local_store_name="$1" local local_private_key local_private_key="$(get_local_private_key "${local_store_name}")" - age-keygen -y <<<"${local_private_key}" + printf '%s\n' "${local_private_key}" | age-keygen -y } verify_local_pubkey() { -- cgit v1.2.3