Skip to content
Snippets Groups Projects
Commit e0649db6 authored by Gomez Goiri, Aitor's avatar Gomez Goiri, Aitor
Browse files

Cleaning previously existing compilations

This way we will force to compile and deploy latest version always (also when a previous equal version existed as tar.gz)
parent 94660ea8
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@ source config.sh
source bumpVersion.sh
sudo mkdir -p vars/chaincode/$CHAINCODE
# Clears previous builds
# Otherwise, if a previous version with the same version exists in the folder,
# the actual one won't be compiled.
sudo rm -rf vars/chaincode/$CHAINCODE/*.tar.gz
sudo rm -rf vars/chaincode/$CHAINCODE/go
sudo cp -ra $CHAINCODE_PATH vars/chaincode/$CHAINCODE/go
minifab ccup -n $CHAINCODE -l $LANG -v $VERSION
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment