Skip to content

Commit

Permalink
fix: sudo commands
Browse files Browse the repository at this point in the history
Signed-off-by: osamamagdy <[email protected]>
  • Loading branch information
osamamagdy committed Nov 29, 2024
1 parent e11d630 commit 3053333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/chaincode/cc-tools-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Here are the steps to accomplish this:

We need to clone the chaincode folder from the [cc-tools-demo](https://github.com/hyperledger-labs/cc-tools-demo) repository here.

**Note**: If you're not inside the dev environment, git commands will need sudo permissions like the following:
**Note**: If you're not inside the dev environment, git commands will need sudo permissions till you update ownership like the following:

```bash
export ccToolsDemoPath=$FPC_PATH/samples/chaincode/cc-tools-demo
git clone -n --no-checkout --depth=1 --filter=tree:0 https://github.com/hyperledger-labs/cc-tools-demo.git "$ccToolsDemoPath/chaincode"
sudo git clone -n --no-checkout --depth=1 --filter=tree:0 https://github.com/hyperledger-labs/cc-tools-demo.git "$ccToolsDemoPath/chaincode"
cd "$ccToolsDemoPath/chaincode" || { echo "$ccToolsDemoPath/chaincode does not exist" ; exit 1; }
sudo chown -R $USER $ccToolsDemoPath
git config --global --add safe.directory /src/github.com/hyperledger/fabric-private-chaincode/samples/chaincode/cc-tools-demo/chaincode
Expand Down

0 comments on commit 3053333

Please sign in to comment.