diff --git a/zen/tools/dunitey2secret.sh b/zen/tools/dunitey2secret.sh index 81651b5..754c805 100755 --- a/zen/tools/dunitey2secret.sh +++ b/zen/tools/dunitey2secret.sh @@ -20,7 +20,7 @@ DUNIKEYFILE="$1" pub=$(cat ${DUNIKEYFILE} | grep "pub" | cut -d ' ' -f 2) priv=$(cat ${DUNIKEYFILE} | grep "sec" | cut -d ' ' -f 2) ssbpub=$(echo $pub | base58 -d | base64) -ssbpriv=$(echo $priv | base58 -d | base64) +ssbpriv=$(echo $priv | base58 -d | base64 | tr -d "\n") cat > ~/.ssb/secret.ssb <> ~/.zen/secret.ZEN.txt g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2) ssbpub=$(echo $g1pub | base58 -d | base64) -ssbpriv=$(echo $g1priv | base58 -d | base64) +ssbpriv=$(echo $g1priv | base58 -d | base64 | tr -d "\n" ) cat > ~/.ssb/secret <