Skip to content

Commit cb3393b

Browse files
author
Nao Nishijima
committed
[FAB-4906] Fix options in generateArtifacts.sh
generateArtifacts.sh uses -f option for existing folder. But -f option checks file exist or not. This patch set changes the option to -d. -d option checks directory exist or not. Change-Id: I19a31e74405ba42957cb0b543c3629f49c7d05ef Signed-off-by: Nao Nishijima <nao.nishijima@hal.hitachi.com>
1 parent 26317e3 commit cb3393b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/e2e_cli/network_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function removeUnwantedImages() {
5252
}
5353

5454
function networkUp () {
55-
if [ -f "./crypto-config" ]; then
55+
if [ -d "./crypto-config" ]; then
5656
echo "crypto-config directory already exists."
5757
else
5858
#Generate all the artifacts that includes org certs, orderer genesis block,

0 commit comments

Comments
 (0)