From 109f43ea633cedc47480a200541d56afd472a054 Mon Sep 17 00:00:00 2001 From: naromero77 Date: Wed, 11 Dec 2019 12:12:46 -0600 Subject: [PATCH] Less ambiguous syntax for conditional. --- tests/test_automation/spack_nightly_ubuntu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_automation/spack_nightly_ubuntu.sh b/tests/test_automation/spack_nightly_ubuntu.sh index b00426102..b7c2f8096 100755 --- a/tests/test_automation/spack_nightly_ubuntu.sh +++ b/tests/test_automation/spack_nightly_ubuntu.sh @@ -87,14 +87,14 @@ qe_hash=57cb1b06ee2653a87c3acc0dd4f09032fcf6ce6b8cbb9677ae9ceeb6a78f85e2 cd $SPACK_ROOT git checkout develop -if [ $? -ne 0 ] +if [[ $? -ne 0 ]] then echo "Not a git repository" exit 1 fi git pull upstream develop -if [ $? -ne 0 ] +if [[ $? -ne 0 ]] then echo "Not able to pull Spack upstream into local git repo" exit 1 @@ -190,7 +190,7 @@ for version in ${versions[@]}; do # test that QMCPACK patch was REALLY applied spack find quantum-espresso@6.4.1"%"${compiler} patches=${qe_hash} - if $? -ne 0 + if [[ $? -ne 0 ]] then echo "QMCPACK patch was not applied to QE." >> ${SPACK_FAILS} fi