Skip to content

Commit e3f15a2

Browse files
committed
fixup some shellcheck warnings
1 parent 2c55511 commit e3f15a2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/bashtest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FAILED=0
1313
function assert_success() {
1414
MESSAGE="$1"
1515
shift
16-
COMMAND="$@"
16+
COMMAND="$*"
1717

1818
((++TESTS))
1919

tests/test.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
# Directory of the integration test
44
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55
# Root directory of the repository
6-
DIST=$(cd $HERE/..; echo $PWD)
6+
DIST=$(cd "$HERE"/..; pwd)
77

8-
source ${HERE}/bashtest.sh
8+
source "${HERE}"/bashtest.sh
99

1010
# test packaing with a single binary
1111
function package_bin() {
1212
rm -rf target/lambda/release > /dev/null 2>&1
1313
docker run --rm \
1414
-e BIN="$1" \
15-
-v ${PWD}:/code \
16-
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
17-
-v ${HOME}/.cargo/git:/root/.cargo/git \
15+
-v "${PWD}":/code \
16+
-v "${HOME}"/.cargo/registry:/root/.cargo/registry \
17+
-v "${HOME}"/.cargo/git:/root/.cargo/git \
1818
softprops/lambda-rust && \
1919
ls target/lambda/release/bootstrap.zip > /dev/null 2>&1
2020
}
@@ -23,9 +23,9 @@ function package_bin() {
2323
function package_all() {
2424
rm -rf target/lambda/release > /dev/null 2>&1
2525
docker run --rm \
26-
-v ${PWD}:/code \
27-
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
28-
-v ${HOME}/.cargo/git:/root/.cargo/git \
26+
-v "${PWD}":/code \
27+
-v "${HOME}"/.cargo/registry:/root/.cargo/registry \
28+
-v "${HOME}"/.cargo/git:/root/.cargo/git \
2929
softprops/lambda-rust && \
3030
ls target/lambda/release/bootstrap.zip > /dev/null 2>&1
3131
}
@@ -35,15 +35,15 @@ function package_all_dev_profile() {
3535
rm -rf target/lambda/debug > /dev/null 2>&1
3636
docker run --rm \
3737
-e PROFILE=dev \
38-
-v ${PWD}:/code \
39-
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
40-
-v ${HOME}/.cargo/git:/root/.cargo/git \
38+
-v "${PWD}":/code \
39+
-v "${HOME}"/.cargo/registry:/root/.cargo/registry \
40+
-v "${HOME}"/.cargo/git:/root/.cargo/git \
4141
softprops/lambda-rust && \
4242
ls target/lambda/debug/bootstrap.zip > /dev/null 2>&1
4343
}
4444

4545
for project in test-func test-multi-func; do
46-
cd ${HERE}/${project}
46+
cd "${HERE}"/"${project}"
4747

4848
# package tests
4949
assert_success "it packages single bin" package_bin bootstrap

0 commit comments

Comments
 (0)