Skip to content

Commit

Permalink
Fix lint error in runTF.sh issued from Codacy Static Code Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Mar 27, 2024
2 parents 9c6e49a + cd6d03b commit 81f4257
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/runTF.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CONTAINER_PORT="-p 8888:8888"
CONTAINER_DATA_PATH="/app/.tofu"

if [ -z "$CBTUMBLEBUG_ROOT" ]; then
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
export CBTUMBLEBUG_ROOT=`cd $SCRIPT_DIR && cd .. && pwd`
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]:-$0}")
export CBTUMBLEBUG_ROOT=$(cd "$SCRIPT_DIR" && cd .. && pwd)
fi

parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
Expand All @@ -32,9 +32,9 @@ if [ ! -f "$aws_credential" ] || [ ! -f "$gcp_credential" ] || [ ! -f "$azure_cr
./exportCredentials.sh
fi
# Move the exported credentials to the credential directory
mv $exported_aws_credential $aws_credential
mv $exported_gcp_credential $gcp_credential
mv $exported_azure_credential $azure_credential
mv "$exported_aws_credential" "$aws_credential"
mv "$exported_gcp_credential" "$gcp_credential"
mv "$exported_azure_credential" "$azure_credential"
fi

CONTAINER_ENV="--env-file $credential_dir/credentials \
Expand Down

0 comments on commit 81f4257

Please sign in to comment.