From 194b9b9bca4f8a479486554f6f462d6697485754 Mon Sep 17 00:00:00 2001 From: Ethan Coeytaux Date: Tue, 12 Sep 2017 10:27:05 -0400 Subject: [PATCH] [FAB-5618] Allow directory to contain spaces Added quotes to $CURRENT_DIR in byfn.sh so that the current directory can contain spaces and the script will still run properly. Change-Id: I3853e3398c29c55c46603477fada5db023808431 Issue-id: FAB-5618 Signed-off-by: Ethan Coeytaux --- 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 46c417351e..78f173c11e 100755 --- a/first-network/byfn.sh +++ b/first-network/byfn.sh @@ -161,11 +161,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