diff options
Diffstat (limited to 'secrets/ensure.sh')
| -rwxr-xr-x | secrets/ensure.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/secrets/ensure.sh b/secrets/ensure.sh index e11212f..49ba6a1 100755 --- a/secrets/ensure.sh +++ b/secrets/ensure.sh @@ -29,4 +29,8 @@ root_dir="$(cd "${this_dir}" && cd .. && pwd)" source "${this_dir}/common.sh" +if [[ -r "${identity}" ]]; then + exit 0 +fi +[[ -n "${store}" ]] || die "no identity on this machine (${identity}): run szecret enrol" ensure_private_key |
