diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-15 12:05:43 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-15 12:58:35 +0200 |
commit | e54d79b60786650b0bd4925f1cd24384768e2fba (patch) | |
tree | 1439108bb0ce1972c3b9e13730ce94cf9c7bfe7e | |
parent | f83b1d068b3f8eafdcf43af609333eddbbe51d09 (diff) |
Fix ShellCheck warnings
Change-Id: Idf571b39d38b9184b2e08c183d4afe44784fbfe6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit db7c7d3031c8f9a562c6e3db0922e1cfb92ea92b)
-rw-r--r-- | build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -19,7 +19,7 @@ docker/smoke \ docker/benchmarking \ docker/features"} arm64_dirs=${arm64_dirs-${amd64_dirs}} -build_opts=(--pull=true --no-cache --force-rm=true) +build_opts=("--pull=true" --no-cache "--force-rm=true") find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-core:iruya|${repo}/functest-core:amd64-iruya|g" {} + @@ -35,7 +35,7 @@ for dir in ${amd64_dirs}; do [ "${dir}" != "docker/core" ] && (docker rmi "${repo}/functest-${dir##**/}:amd64-iruya" || true) done -[ ! -z "${amd64_dirs}" ] && +[ -n "${amd64_dirs}" ] && (docker rmi "${repo}/functest-core:amd64-iruya" alpine:3.9 || true) find . -name Dockerfile -exec git checkout {} + @@ -54,7 +54,7 @@ for dir in ${arm64_dirs}; do [ "${dir}" != "docker/core" ] && (docker rmi "${repo}/functest-${dir##**/}:arm64-iruya" || true) done -[ ! -z "${arm64_dirs}" ] && +[ -n "${arm64_dirs}" ] && (docker rmi "${repo}/functest-core:arm64-iruya" \ multiarch/alpine:arm64-v3.9 || true) find . -name Dockerfile -exec git checkout {} + @@ -73,7 +73,7 @@ for dir in ${arm_dirs}; do [ "${dir}" != "docker/core" ] && (docker rmi "${repo}/functest-${dir##**/}:arm-iruya" || true) done -[ ! -z "${arm_dirs}" ] && +[ -n "${arm_dirs}" ] && (docker rmi "${repo}/functest-core:arm-iruya" \ multiarch/alpine:armhf-v3.9 || true) find . -name Dockerfile -exec git checkout {} + |