From e5451b8737495b753724ad76bcc825bdd975c164 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 9 May 2020 20:17:15 +0200 Subject: [PATCH] replace ~/.ssb/secret.dunikey --- zen/tools/make_G1SSB_secret.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 2edb177..61f5787 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -216,7 +216,7 @@ ZENPWD=\"$pepper\"" > ~/.zen/secret.astroport.key # CREATE ~/.ssb/secret.dunikey python3 ~/.zen/astroport/zen/tools/key_create_dunikey.py "$salt" "$pepper" sleep 1 -[[ -f /tmp/secret.dunikey ]] && mv /tmp/secret.dunikey ~/.ssb/secret.dunikey || exit 1 +[[ -f /tmp/secret.dunikey ]] && rm -f ~/.ssb/secret.dunikey && mv /tmp/secret.dunikey ~/.ssb/secret.dunikey || exit 1 # CREATE SSB secret g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)