summaryrefslogtreecommitdiff
path: root/secrets/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'secrets/common.sh')
-rw-r--r--secrets/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/secrets/common.sh b/secrets/common.sh
index 5eee8b6..b839cef 100644
--- a/secrets/common.sh
+++ b/secrets/common.sh
@@ -164,11 +164,11 @@ local_key_name() {
ensure_local_store() {
local local_store_name="$1"
local local_key_name
- local local_key_file
local_key_name="$(local_key_name "${local_store_name}")"
- local_key_file="$(file_for "${local_key_name}")"
- if ! [[ -r "${local_key_file}" ]]; then
+ # Wherever its key is, the old store or a bucket; whether this machine can
+ # open it is get's to say.
+ if ! (find_secret "${local_key_name}" >/dev/null 2>&1); then
>&2 echo "ERROR: Local store '${local_store_name}' does not exist (key: ${local_key_name})"
exit 1
fi