diff --git a/scripts/legacy/generateTar.sh b/scripts/legacy/generateTar.sh old mode 100644 new mode 100755 index c62c51e..d9217b1 --- a/scripts/legacy/generateTar.sh +++ b/scripts/legacy/generateTar.sh @@ -1,5 +1,9 @@ #!/usr/bin/bash +cd "$(dirname "$0")" +CUR_DIR=$(pwd) +cd ../.. + # Default values for the flags FLAG_CCAPI="none" FLAG_LABEL="1.0" diff --git a/scripts/legacy/generateTemplateTar2.sh b/scripts/legacy/generateTemplateTar2.sh index 53faf37..3c97b95 100755 --- a/scripts/legacy/generateTemplateTar2.sh +++ b/scripts/legacy/generateTemplateTar2.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +cd "$(dirname "$0")" +CUR_DIR=$(pwd) +cd ../.. + # Make sure go mod is up to date cd chaincode && GOWORK=off go mod vendor && cd ..