Skip to content

Commit b89668b

Browse files
committed
shellcheck to the rescue
1 parent 7d40988 commit b89668b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jenkins.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ python setup.py install
2323
pip install "cwltest>=1.0.20160825151655"
2424
pushd common-workflow-language
2525
git clean --force -d -x || /bin/true
26-
if [ $version = *dev ] then
26+
# shellcheck disable=SC2154
27+
if [[ "$version" = *dev ]]
28+
then
2729
EXTRA="EXTRA=--enable-dev"
28-
./run_test.sh --junit-xml=result.xml RUNNER=cwltool DRAFT=${version} ${EXTRA}
30+
fi
31+
./run_test.sh --junit-xml=result.xml RUNNER=cwltool DRAFT="${version}" ${EXTRA}
2932
CODE=$?
3033
popd
3134
if [ "$GIT_BRANCH" = "origin/master" ]

0 commit comments

Comments
 (0)