github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/scripts/foldercopy.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  
     9  if [ "$2" != "hyperledger" ]; then
    10  
    11          echo " Pull Request number is $1 "
    12          echo " User Name is $2 "
    13  	echo " Repository Name is $3 "
    14  
    15  mkdir -p $HOME/gopath/src/github.com/hyperledger
    16  
    17  	echo "hyperledger/fabric folder created"
    18  
    19  git clone -ql $HOME/gopath/src/github.com/$2/$3 $HOME/gopath/src/github.com/hyperledger/fabric
    20  
    21  	echo "linked $2 user repo into hyperledger/fabric folder"
    22  
    23  fi