Skip to content

Commit

Permalink
Remove double brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Aug 11, 2023
1 parent d649596 commit 4858539
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions build/package/scripts/build-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARTIFACT_PREFIX=""
PRE_TEST_SCRIPT=""
DEBUG="${DEBUG:-false}"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--working-dir) WORKING_DIR="$2"; shift;;
Expand Down Expand Up @@ -131,4 +131,4 @@ if [ $exitcode != 0 ]; then
exit $exitcode
fi
echo "Building ..."
go build -gcflags "all=-trimpath=$(pwd)" -o "${OUTPUT_DIR}/app"
go build -gcflags "all=-trimpath=$(pwd)" -o "${OUTPUT_DIR}/app"
2 changes: 1 addition & 1 deletion build/package/scripts/build-gradle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ gradle_build_dir="build"
gradle_additional_tasks=
gradle_options=

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--working-dir) working_dir="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/build-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ARTIFACT_PREFIX=""
DEBUG="${DEBUG:-false}"
COPY_NODE_MODULES="false"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--working-dir) WORKING_DIR="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/build-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ARTIFACT_PREFIX=""
PRE_TEST_SCRIPT=""
DEBUG="${DEBUG:-false}"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--working-dir) WORKING_DIR="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/cache-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CACHE_BUILD_KEY=
CACHE_LOCATION_USED_PATH=
DEBUG="${DEBUG:-false}"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--working-dir) WORKING_DIR="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/configure-truststore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ src_truststore="${JAVA_HOME}/lib/security/cacerts"
src_pass="changeit"
dest_pass="changeit"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--src-store) src_truststore="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/copy-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CP="${GNU_CP:-cp}"

DEBUG="${DEBUG:-false}"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in
--debug) DEBUG="$2"; shift;;
--debug=*) DEBUG="${1#*=}";;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/copy-build-if-cached.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CACHE_LOCATION_USED_PATH=
WORKING_DIR="."
DEBUG="${DEBUG:-false}"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--cache-build) CACHE_BUILD="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion build/package/scripts/download-aqua-scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ md5_bin="${MD5_BIN:-"md5sum"}"
aqua_scanner_url=""
bin_dir=".ods-cache/bin"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--bin-dir) bin_dir="$2"; shift;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

working_dir="."

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in
--working-dir) working_dir="$2"; shift;;
--working-dir=*) working_dir="${1#*=}";;
Expand Down
2 changes: 1 addition & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function usage {
\n\t\t--sonar-auth 'auth-token' \n\n" "$0"
}

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
# shellcheck disable=SC2034
case $1 in

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-and-push-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ https_proxy="${https_proxy:-}"
PLATFORM=""
# eg. --platform linux/amd64

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-artifact-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ue
GO_OS=""
GO_ARCH=""

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

--go-os) GO_OS="$2"; shift;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-tekton-pipelines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if ! which kubectl &> /dev/null; then
echo "kubectl is required"
fi

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/kind-with-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ REGISTRY_PORT="5000"
# See https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-11-release-notes.html
K8S_VERSION="v1.24.7"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/restart-bitbucket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ INSECURE=""
BITBUCKET_SERVER_HOST_PORT="7990"
BITBUCKET_SERVER_CONTAINER_NAME="ods-test-bitbucket-server"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-bitbucket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BITBUCKET_POSTGRES_CONTAINER_NAME="ods-test-bitbucket-postgres"
BITBUCKET_POSTGRES_IMAGE_TAG="12"
kind_values_dir="${ODS_PIPELINE_DIR}/deploy/.kind-values"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-nexus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ NEXUS_IMAGE_TAG="3.30.1"
kind_values_dir="${ODS_PIPELINE_DIR}/deploy/.kind-values"
DOCKER_CONTEXT_DIR="${ODS_PIPELINE_DIR}/test/testdata/private-cert"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-sonarqube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SONAR_EDITION="community"
SONAR_IMAGE_TAG="${SONAR_VERSION}-${SONAR_EDITION}"
kind_values_dir="${ODS_PIPELINE_DIR}/deploy/.kind-values"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-tls-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https_port="8443"
container_name=""
nginx_conf=""

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/waitfor-bitbucket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -ue
INSECURE=""
BITBUCKET_SERVER_HOST_PORT="7990"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/waitfor-nexus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ INSECURE=""
HOST_PORT="8081"
NEXUS_URL=

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/waitfor-sonarqube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HOST_PORT="9000"
SONAR_USERNAME="admin"
SONAR_PASSWORD="admin"

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
case $1 in

-v|--verbose) set -x;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/web-terminal-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ HELM_PLUGIN_DIFF_VERSION=3.3.2
REPOSITORY=""
NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)

while [[ "$#" -gt 0 ]]; do
while [ "$#" -gt 0 ]; do
# shellcheck disable=SC2034
case $1 in

Expand Down

0 comments on commit 4858539

Please sign in to comment.