diff options
| author | Igor Soarez <igor@soarez.org> | 2026-11-21 13:24:26 +0000 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-11-21 13:24:26 +0000 |
| commit | 990a23be281ee13e33c165f446d2ac3c0c88299c (patch) | |
| tree | fc05055a29b8bedb6a3121cb5bf808f9c17c9a38 /secrets/common.sh | |
| parent | c159f7526224d6dca42a456162e1b116083751df (diff) | |
szecret create-local <bucket>/<store>: a new store's key goes in a bucket this machine reads; plain <store> for an existing store or no bucketsHEADmaster
Diffstat (limited to 'secrets/common.sh')
| -rw-r--r-- | secrets/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 <store-name> <directory>' to recreate" + >&2 echo "Run 'szecret create-local [<bucket>/]<store-name> <directory>' 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() { |
