From f0fe35c514190ecf36fad62c4967935996fb4b29 Mon Sep 17 00:00:00 2001 From: Gianluca Boiano Date: Thu, 17 Aug 2017 18:43:35 +0200 Subject: [PATCH] byfn.sh: CURRENT_DIR issue with long paths fixed Double quoted CURRENT_DIR var to allow right expansion for long paths. Before it cause a "too many arguments" for cd command --- first-network/byfn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/first-network/byfn.sh b/first-network/byfn.sh index 04436ed9..06af3197 100755 --- a/first-network/byfn.sh +++ b/first-network/byfn.sh @@ -152,11 +152,11 @@ function replacePrivateKey () { CURRENT_DIR=$PWD cd crypto-config/peerOrganizations/org1.example.com/ca/ PRIV_KEY=$(ls *_sk) - cd $CURRENT_DIR + cd "$CURRENT_DIR" sed $OPTS "s/CA1_PRIVATE_KEY/${PRIV_KEY}/g" docker-compose-e2e.yaml cd crypto-config/peerOrganizations/org2.example.com/ca/ PRIV_KEY=$(ls *_sk) - cd $CURRENT_DIR + cd "$CURRENT_DIR" sed $OPTS "s/CA2_PRIVATE_KEY/${PRIV_KEY}/g" docker-compose-e2e.yaml # If MacOSX, remove the temporary backup of the docker-compose file if [ "$ARCH" == "Darwin" ]; then