Skip to content
Snippets Groups Projects
Commit 48d2fd6b authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Do proper check, to see if we should create account

parent 512d4529
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ fi
# BFAACCOUNT
if [ -z "$BFAACCOUNT" ]
then
if [ ! -d "${BFANODEDIR}/keystore" ]
if ! ls -1d ${BFANODEDIR}/keystore/*--* >/dev/null 2>&1
then
echo "No accounts found. Creating a new one (they are free)."
geth --cache 0 --datadir ${BFANODEDIR} --password /dev/null account new
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment