-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repository name fix for travis builds
- Loading branch information
1 parent
ae58061
commit 3aa1fbc
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" = "false" ] && [ "$2" != "hyperledger" ]; then | ||
|
||
echo " Pull Request number is $1 " | ||
echo " User Name is $2 " | ||
echo " Repository Name is $3 " | ||
|
||
rm -rf $HOME/gopath/src/github.com/hyperledger/ | ||
echo "Deleted hyperledger folder" | ||
cp -r $HOME/gopath/src/github.com/$2 $HOME/gopath/src/github.com/hyperledger | ||
echo "Copied User Directory into hyperledger" | ||
|
||
echo "creating fabric folder to copy files" | ||
|
||
mkdir -p $HOME/gopath/src/github.com/hyperledger/fabric | ||
|
||
echo "hyperledger/fabric folder created" | ||
|
||
cp -r $HOME/gopath/src/github.com/$2/$3/* $HOME/gopath/src/github.com/hyperledger/fabric/ | ||
|
||
echo "Copied $2 files into hyperledger/fabric folder" | ||
|
||
elif [ "$2" != "hyperledger" ]; then | ||
mv $HOME/gopath/src/github.com/$2 $HOME/gopath/src/github.com/hyperledger | ||
|
||
mkdir -p $HOME/gopath/src/github.com/hyperledger/fabric | ||
|
||
echo "hyperledger/fabric folder created" | ||
|
||
cp -r $HOME/gopath/src/github.com/$2/$3/* $HOME/gopath/src/github.com/hyperledger/fabric/ | ||
|
||
echo "copied $2 user repo into hyperledger/fabric folder" | ||
|
||
fi |