Skip to content

Commit 408a9fb

Browse files
committedMay 31, 2018
Fix some shellcheck warnings
1 parent efa7f99 commit 408a9fb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎.ci/travis/code_layout/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ pushd build
1919
export CTEST_BUILD_DIR=${TRAVIS_BUILD_DIR}
2020
export CTEST_BUILD_COMMAND="/usr/bin/make -j3 -i -k"
2121

22-
python3 ${TRAVIS_BUILD_DIR}/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V --output-on-failure -S ${TRAVIS_BUILD_DIR}/.ci/travis/travis.ctest
22+
python3 "${TRAVIS_BUILD_DIR}/.ci/travis/scripts/ctest2travis.py" xvfb-run ctest -V --output-on-failure -S "${TRAVIS_BUILD_DIR}/.ci/travis/travis.ctest"
2323

2424
popd

‎.ci/travis/macos/before_install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# #
1414
###########################################################################
1515

16-
echo `date +%s` > /tmp/travis_timestamp
16+
date +%s > /tmp/travis_timestamp
1717

1818
brew tap osgeo/osgeo4mac
1919
brew update
@@ -56,5 +56,5 @@ brew install \
5656
libzip
5757

5858

59-
mkdir -p ${HOME}/Library/Python/3.6/lib/python/site-packages
60-
echo 'import site; site.addsitedir("/usr/local/opt/gdal2-python/lib/python3.6/site-packages")' >> ${HOME}/Library/Python/3.6/lib/python/site-packages/gdal2.pth
59+
mkdir -p "${HOME}/Library/Python/3.6/lib/python/site-packages"
60+
echo 'import site; site.addsitedir("/usr/local/opt/gdal2-python/lib/python3.6/site-packages")' >> "${HOME}/Library/Python/3.6/lib/python/site-packages/gdal2.pth"

‎.ci/travis/macos/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ done
5151
cmake \
5252
-G 'Ninja' \
5353
-DCMAKE_FIND_FRAMEWORK:STRING=LAST \
54-
-DCMAKE_PREFIX_PATH:STRING=${full_prefixes} \
54+
-DCMAKE_PREFIX_PATH:STRING="${full_prefixes}" \
5555
-DWITH_SERVER=OFF \
5656
-DWITH_DESKTOP=OFF \
5757
-DWITH_STAGED_PLUGINS=ON \

‎.ci/travis/macos/script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
###########################################################################
1515

1616
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
17-
echo $PATH
17+
echo "$PATH"
1818

1919
export PATH=/usr/bin:${PATH}
2020

@@ -27,12 +27,12 @@ ccache -z
2727
#
2828
# Travis will kill the job after approx 48 minutes, we subtract 8 minutes for
2929
# uploading and initialization (40) and subtract the bootstrapping time from that.
30-
TIMEOUT=$(expr 40 \* 60 - `date +%s` + `cat /tmp/travis_timestamp`)
30+
TIMEOUT=$(expr 40 \* 60 - "$(date +%s)" + "$(cat /tmp/travis_timestamp)")
3131

3232
export CTEST_BUILD_COMMAND=/usr/local/bin/ninja
3333
export CTEST_BUILD_DIR=${TRAVIS_BUILD_DIR}
3434

35-
gtimeout ${TIMEOUT}s ctest -V -E "$(cat ${DIR}/blacklist.txt | gsed -r '/^(#.*?)?$/d' | gpaste -sd '|' -)" -S ${DIR}/../travis.ctest --output-on-failure
35+
gtimeout "${TIMEOUT}s" ctest -V -E "$(cat ${DIR}/blacklist.txt | gsed -r '/^(#.*?)?$/d' | gpaste -sd '|' -)" -S "${DIR}/../travis.ctest" --output-on-failure
3636

3737
rv=$?
3838

0 commit comments

Comments
 (0)
Please sign in to comment.