github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/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" != "inkchain" ]; 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/inkchain
    16  
    17  	echo "inklabsfoundation/inkchain folder created"
    18  
    19  git clone -ql $HOME/gopath/src/github.com/$2/$3 $HOME/gopath/src/github.com/inklabsfoundation/inkchain
    20  
    21  	echo "linked $2 user repo into inklabsfoundation/inkchain folder"
    22  
    23  fi