[FAB-4906] sed error in generateArtifacts.sh
[FAB-4906] sed error in generateArtifacts.sh

generateArtifacts.sh does not work at 2nd time. Due to generating
a private key every time, if we execute generateArtifacts.sh more
than once, the command to get the private key will return more
than one result. However, we do not expect this result.
This patch set adds checking code of the existence of crypto-config
dir at the beginning.

Change-Id: Ie9249556c1988e30463683f688e4e50dc75d7b15
Signed-off-by: Nao Nishijima <ba12c351dbe96870a968dc0b0668a4a809432a94@hal.hitachi.com>

ckeyer/fabric,mqshen/fabric,mqshen/fabric,kchristidis/fabric,blockc/fabric,manish-sethi/fabric-sidedb,blockc/fabric,ckeyer/fabric,ckeyer/fabric,cophey/fabric,cophey/fabric,mqshen/fabric,kchristidis/fabric,kchristidis/fabric,thakkarparth007/fabric,ckeyer/fabric,Ryan--Yang/fabric,lukehuangch/fabric,stemlending/fabric,mqshen/fabric,manish-sethi/fabric,binhn/fabric,mqshen/fabric,ckeyer/fabric,kchristidis/fabric,thakkarparth007/fabric,kchristidis/fabric,manish-sethi/fabric-sidedb,Ryan--Yang/fabric,lukehuangch/fabric,manish-sethi/fabric-sidedb,lukehuangch/fabric,Ryan--Yang/fabric,mqshen/fabric,thakkarparth007/fabric,thakkarparth007/fabric,xixuejia/fabric,manish-sethi/fabric,binhn/fabric,binhn/fabric,manish-sethi/fabric-sidedb,thakkarparth007/fabric,blockc/fabric,blockc/fabric,blockc/fabric,jimthematrix/fabric,mqshen/fabric,thakkarparth007/fabric,hyperledger/fabric,kchristidis/fabric,lukehuangch/fabric,kchristidis/fabric,Ryan--Yang/fabric,Ryan--Yang/fabric,cophey/fabric,xixuejia/fabric,cophey/fabric,xixuejia/fabric,manish-sethi/fabric-sidedb,lukehuangch/fabric,cophey/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,hyperledger/fabric,stemlending/fabric,cophey/fabric,muralisrini/fabric,Ryan--Yang/fabric,lukehuangch/fabric,Ryan--Yang/fabric,jimthematrix/fabric,muralisrini/fabric,lukehuangch/fabric,blockc/fabric,stemlending/fabric,cophey/fabric,ckeyer/fabric,ckeyer/fabric,muralisrini/fabric,blockc/fabric,stemlending/fabric,thakkarparth007/fabric