Skip to content

Commit

Permalink
Fix all SC2164 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 21, 2018
1 parent 0d41925 commit 4118baf
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .ci/travis/code_layout/install.sh
Expand Up @@ -17,8 +17,8 @@
export CORES=2

mkdir build
pushd build
pushd build || exit

cmake -DUSE_CCACHE=OFF -DWITH_CORE=OFF -DWITH_APIDOC=ON -DWITH_ASTYLE=ON -DENABLE_TESTS=ON ..

popd
popd || exit
4 changes: 2 additions & 2 deletions .ci/travis/macos/install.sh
Expand Up @@ -15,7 +15,7 @@
###########################################################################

mkdir build
pushd build
pushd build || exit

export PATH=/usr/local/opt/ccache/libexec:$PATH
HB=$(brew --prefix)
Expand Down Expand Up @@ -62,4 +62,4 @@ cmake \
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
..

popd
popd || exit
2 changes: 1 addition & 1 deletion scripts/build_debian_package.sh
Expand Up @@ -26,7 +26,7 @@ fi

if [ -d `pwd`/debian ]
then
cd debian
cd debian || exit
svn update
cd ..
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/jenkins-run.sh
Expand Up @@ -6,7 +6,7 @@ then
fi

mkdir build
cd build
cd build || exit
cmake ..
#xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1024x768x24" make Experimental || true
make Experimental || true
Expand Down
4 changes: 2 additions & 2 deletions scripts/runtests-local-travis-config.sh
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
DIR=$(git rev-parse --show-toplevel)
cd $1
cd $1 || exit
FOLDER=linux
if [[ "$OSTYPE" =~ darwin* ]]; then
GP=linux
fi
ctest -E "$(cat ${DIR}/.ci/travis/${FOLDER}/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" --output-on-failure
cd $DIR
cd $DIR || exit
4 changes: 2 additions & 2 deletions tests/code_layout/test_shellcheck.sh
Expand Up @@ -4,9 +4,9 @@

DIR=$(git rev-parse --show-toplevel)

pushd ${DIR} > /dev/null
pushd ${DIR} > /dev/null || exit
result=$(shellcheck -e SC2016,SC2015,SC2086,SC2002,SC1117,SC2154,SC2076,SC2046,SC1090,SC2038,SC2031,SC2030,SC2162,SC2196,SC2034,SC2044,SC2119,SC1001,SC2188,SC2119,SC2188,SC2120,SC2103,SC2059,SC2006,SC2221,SC2222,SC2120,SC2128,SC2005,SC2004,SC2013,SC2027,SC2090,SC2089,SC2124,SC2068,SC2035,SC2001,SC2010,SC1072,SC1073,SC1009,SC2166,SC2062,SC2045,SC2028,SC1091,SC2181,SC1083,SC2116,SC2219 $(find . -name '*.sh'))
popd > /dev/null
popd > /dev/null || exit

if [[ $result ]]; then
echo " *** shellcheck found script errors"
Expand Down
4 changes: 2 additions & 2 deletions tests/code_layout/test_sip_include.sh
Expand Up @@ -9,7 +9,7 @@ if [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

pushd ${DIR} > /dev/null
pushd ${DIR} > /dev/null || exit

code=0
modules=(core gui analysis server)
Expand All @@ -36,6 +36,6 @@ if [[ code -eq 1 ]]; then
echo -e " If a header should not have a sip file created, add \x1B[33m#define SIP_NO_FILE\x1B[0m."
fi

popd > /dev/null
popd > /dev/null || exit

exit $code
4 changes: 2 additions & 2 deletions tests/code_layout/test_sipfiles_uptodate.sh
Expand Up @@ -10,7 +10,7 @@ if [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

pushd ${DIR} > /dev/null
pushd ${DIR} > /dev/null || exit

modules=(core gui analysis server)

Expand Down Expand Up @@ -57,6 +57,6 @@ It is not aimed to be manually edited
done


popd > /dev/null
popd > /dev/null || exit

exit $code
4 changes: 2 additions & 2 deletions tests/code_layout/test_sipify.sh
Expand Up @@ -4,9 +4,9 @@

DIR=$(git rev-parse --show-toplevel)

pushd ${DIR} > /dev/null
pushd ${DIR} > /dev/null || exit
outdiff=$(./scripts/sipify.pl tests/code_layout/sipifyheader.h | diff tests/code_layout/sipifyheader.expected.sip -)
popd > /dev/null
popd > /dev/null || exit

if [[ $outdiff ]]; then
echo " *** sipify.pl did not output expected file"
Expand Down

0 comments on commit 4118baf

Please sign in to comment.