From 803e0e65cf63fdc95c7ad4a519a5db31d27f94d4 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 25 Aug 2021 12:45:42 +0000 Subject: Fix script issues identified through shellcheck (#258) * Fix spelling * Fix shellcheck-identified warnings in shell scripts --- test/travis-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/travis-build.sh') diff --git a/test/travis-build.sh b/test/travis-build.sh index bed71ee..c33f7dc 100755 --- a/test/travis-build.sh +++ b/test/travis-build.sh @@ -13,8 +13,8 @@ TEST_CMD="python3 -m pytest --maxfail=99 test/" # Standard build with Valgrind for CC in gcc clang; do - mkdir build-${CC}; cd build-${CC} - if [ ${CC} == 'gcc-6' ]; then + mkdir "build-${CC}"; cd "build-${CC}" + if [ "${CC}" == 'gcc-6' ]; then build_opts='-D b_lundef=false' else build_opts='' @@ -25,12 +25,12 @@ for CC in gcc clang; do TEST_WITH_VALGRIND=true ${TEST_CMD} cd .. done -(cd build-$CC; sudo ninja install) +(cd "build-${CC}"; sudo ninja install) # Sanitized build CC=clang for san in undefined address; do - mkdir build-${san}; cd build-${san} + mkdir "build-${san}"; cd "build-${san}" # b_lundef=false is required to work around clang # bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4 meson -D b_sanitize=${san} -D b_lundef=false -D werror=true .. -- cgit v1.2.3