Skip to content

Commit

Permalink
Avoid legacy scripts to run outside its original folder
Browse files Browse the repository at this point in the history
Signed-off-by: André Macedo <[email protected]>
  • Loading branch information
andremacedopv committed Jul 10, 2024
1 parent 18bfcaf commit 12e88f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/legacy/generateTar.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions scripts/legacy/generateTemplateTar2.sh
Original file line number Diff line number Diff line change
@@ -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 ..

Expand Down

0 comments on commit 12e88f7

Please sign in to comment.