From 76e092c0e3f35d7a6894c315da847d756e4afa87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Macedo?= Date: Wed, 10 Jul 2024 17:47:01 -0300 Subject: [PATCH] Remove unecessary commands from scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Macedo --- scripts/generateCollection.sh | 1 - scripts/godog.sh | 1 - scripts/legacy/generateTar.sh | 1 - scripts/legacy/generateTemplateTar2.sh | 1 - scripts/reloadCCAPI.sh | 2 -- scripts/renameProject.sh | 1 - 6 files changed, 7 deletions(-) diff --git a/scripts/generateCollection.sh b/scripts/generateCollection.sh index d0b7c09..87d738f 100755 --- a/scripts/generateCollection.sh +++ b/scripts/generateCollection.sh @@ -1,7 +1,6 @@ #!/usr/bin/bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) while getopts "o:h" opt; do case $opt in diff --git a/scripts/godog.sh b/scripts/godog.sh index 64faf66..f30c4c7 100755 --- a/scripts/godog.sh +++ b/scripts/godog.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) echo "Starting development network ..." # ./startDev.sh -n 1 diff --git a/scripts/legacy/generateTar.sh b/scripts/legacy/generateTar.sh index d9217b1..0711a17 100755 --- a/scripts/legacy/generateTar.sh +++ b/scripts/legacy/generateTar.sh @@ -1,7 +1,6 @@ #!/usr/bin/bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) cd ../.. # Default values for the flags diff --git a/scripts/legacy/generateTemplateTar2.sh b/scripts/legacy/generateTemplateTar2.sh index 3c97b95..82d6fc5 100755 --- a/scripts/legacy/generateTemplateTar2.sh +++ b/scripts/legacy/generateTemplateTar2.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) cd ../.. # Make sure go mod is up to date diff --git a/scripts/reloadCCAPI.sh b/scripts/reloadCCAPI.sh index 0b6de90..3916f38 100755 --- a/scripts/reloadCCAPI.sh +++ b/scripts/reloadCCAPI.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) ORG_QNTY=3 @@ -24,6 +23,5 @@ if [ $ORG_QNTY == 1 ] then cd ../ccapi; docker-compose -f docker-compose-1org.yaml down; docker-compose -f docker-compose-1org.yaml up -d --build; cd .. else - echo $PWD cd ../ccapi; docker-compose down; docker-compose up -d --build; cd .. fi \ No newline at end of file diff --git a/scripts/renameProject.sh b/scripts/renameProject.sh index b7dcca7..66af435 100755 --- a/scripts/renameProject.sh +++ b/scripts/renameProject.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash cd "$(dirname "$0")" -CUR_DIR=$(pwd) # CAUTION: this script will replace every occurrence of the word # `cc-tools-demo` in the project folder with whatever argument