Skip to content

Commit 666fd3e

Browse files
committed
Clean up shellcheck warnings
1 parent 898b1d9 commit 666fd3e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.ci/run-repository.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# TEST_SUITE -- which test suite to run: free or platinum
66
# ELASTICSEARCH_URL -- The url at which elasticsearch is reachable, a default is composed based on STACK_VERSION and TEST_SUITE
77
# NODE_JS_VERSION -- node js version (defined in test-matrix.yml, a default is hardcoded here)
8-
script_path=$(dirname $(realpath -s $0))
9-
source $script_path/functions/imports.sh
8+
script_path=$(dirname "$(realpath -s "$0")")
9+
source "$script_path/functions/imports.sh"
1010
set -euo pipefail
1111

1212
NODE_JS_VERSION=${NODE_JS_VERSION-16}
@@ -24,18 +24,18 @@ echo -e "\033[1m>>>>> Build docker container >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0
2424
docker build \
2525
--file .ci/Dockerfile \
2626
--tag elastic/elasticsearch-js \
27-
--build-arg NODE_JS_VERSION=${NODE_JS_VERSION} \
27+
--build-arg NODE_JS_VERSION="${NODE_JS_VERSION}" \
2828
.
2929

3030
echo -e "\033[1m>>>>> NPM run test:integration >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
3131

32-
repo=$(realpath $(dirname $(realpath -s $0))/../)
32+
repo=$(realpath "$(dirname "$(realpath -s "$0")")"/../)
3333

3434
docker run \
35-
--network=${network_name} \
35+
--network="${network_name}" \
3636
--env "TEST_ES_SERVER=${ELASTICSEARCH_URL}" \
3737
--env "TEST_SUITE=${TEST_SUITE}" \
38-
--volume $repo:/usr/src/app \
38+
--volume "$repo:/usr/src/app" \
3939
--volume /usr/src/app/node_modules \
4040
--name elasticsearch-js \
4141
--rm \

.ci/run-tests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env bash
22
#
33
# Version 1.1
4-
# - Moved to .ci folder and seperated out `run-repository.sh`
4+
# - Moved to .ci folder and separated out `run-repository.sh`
55
# - Add `$RUNSCRIPTS` env var for running Elasticsearch dependent products
6-
script_path=$(dirname $(realpath -s $0))
7-
source $script_path/functions/imports.sh
6+
script_path=$(dirname "$(realpath -s "$0")")
7+
source "$script_path/functions/imports.sh"
88
set -euo pipefail
99

1010
echo -e "\033[1m>>>>> Start [$STACK_VERSION container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
@@ -15,7 +15,7 @@ if [[ -n "$RUNSCRIPTS" ]]; then
1515
echo -e "\033[1m>>>>> Running run-$RUNSCRIPT.sh >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
1616
CONTAINER_NAME=${RUNSCRIPT} \
1717
DETACH=true \
18-
bash .ci/run-${RUNSCRIPT}.sh
18+
bash ".ci/run-${RUNSCRIPT}.sh"
1919
done
2020
fi
2121

0 commit comments

Comments
 (0)