missing . in local devnet setup script (#230)

This commit is contained in:
Jerome 2023-03-01 21:54:45 +11:00 committed by GitHub
parent 8b1f77ea01
commit e902243186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,10 +19,10 @@ then
echo "${private_key}" >> ./tmp/key echo "${private_key}" >> ./tmp/key
echo "Creating a new wallet" echo "Creating a new wallet"
wallet=$(../../build/bin/XDC account import --password ./tmp/.pwd --datadir ./tmp/xdcchain ./tmp/key | awk -v FS="({|})" '{print $2}') wallet=$(../../build/bin/XDC account import --password ./tmp/.pwd --datadir ./tmp/xdcchain ./tmp/key | awk -v FS="({|})" '{print $2}')
../../build/bin/XDC --datadir /tmp/xdcchain init ./genesis.json ../../build/bin/XDC --datadir ./tmp/xdcchain init ./genesis.json
else else
echo "Wallet already exist, re-use the same one. If you have changed the private key, please manually inspect the key if matches. Otherwise, delete the 'tmp' directory and start again!" echo "Wallet already exist, re-use the same one. If you have changed the private key, please manually inspect the key if matches. Otherwise, delete the 'tmp' directory and start again!"
wallet=$(../../build/bin/XDC account list --datadir /tmp/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}') wallet=$(../../build/bin/XDC account list --datadir ./tmp/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
fi fi
input="./bootnodes.list" input="./bootnodes.list"