diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2021-08-25 12:45:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 14:45:42 +0200 |
commit | 803e0e65cf63fdc95c7ad4a519a5db31d27f94d4 (patch) | |
tree | 1c5358df9b4911af37370656b7a2def65c832e18 /test | |
parent | 9700b353700589dcc462205c638bcb40219a49c2 (diff) | |
download | sshfs-803e0e65cf63fdc95c7ad4a519a5db31d27f94d4.tar sshfs-803e0e65cf63fdc95c7ad4a519a5db31d27f94d4.tar.gz sshfs-803e0e65cf63fdc95c7ad4a519a5db31d27f94d4.tar.bz2 sshfs-803e0e65cf63fdc95c7ad4a519a5db31d27f94d4.zip |
Fix script issues identified through shellcheck (#258)
* Fix spelling
* Fix shellcheck-identified warnings in shell scripts
Diffstat (limited to 'test')
-rwxr-xr-x | test/appveyor-build.sh | 4 | ||||
-rwxr-xr-x | test/travis-build.sh | 8 | ||||
-rwxr-xr-x | test/travis-install.sh | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/test/appveyor-build.sh b/test/appveyor-build.sh index 31be8bb..dcf7800 100755 --- a/test/appveyor-build.sh +++ b/test/appveyor-build.sh @@ -1,7 +1,7 @@ #!/bin/bash machine=$(uname -m) -mkdir build-$machine -cd build-$machine +mkdir "build-$machine" +cd "build-$machine" meson .. ninja 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 .. diff --git a/test/travis-install.sh b/test/travis-install.sh index a6d9d26..c2df821 100755 --- a/test/travis-install.sh +++ b/test/travis-install.sh @@ -13,7 +13,7 @@ ninja sudo ninja install test -e /usr/local/lib/pkgconfig || sudo mkdir /usr/local/lib/pkgconfig sudo mv /usr/local/lib/*/pkgconfig/* /usr/local/lib/pkgconfig/ -ls -d1 /usr/local/lib/*-linux-gnu | sudo tee /etc/ld.so.conf.d/usrlocal.conf +printf '%s\n' /usr/local/lib/*-linux-gnu | sudo tee /etc/ld.so.conf.d/usrlocal.conf sudo ldconfig # Setup ssh |