Apparently, the exit code for the script does not work on Jenkins.
I can only guess whether this is caused by different bash (with some
differences in the support for set -o pipefail) or git versions (with
different behavior of the --exit-code flag in combination with the other
flags), or something else, but these changes seem to make it work.
Apply uncrustify with reformat_all.sh to fix any issues that have been
slipped through so far.
Change-Id: I005eed88f839014f38992826ad7b984b8ad3597e
fi
# Find the changed files
+git diff --no-index --name-only --exit-code org/ new/ | \
+ sed -e 's#new/##' > $tmpdir/changed
changes=
-set -o pipefail
-if ! git diff --no-index --name-only --exit-code org/ new/ | \
- sed -e 's#new/##' > $tmpdir/changed
+if [[ -s $tmpdir/changed ]]
then
changes=1
fi
/* Only forces in domains near the PBC boundaries need to
consider PBC in the treatment of fshift */
bShiftForcesNeedPbc = (dd->ci[dd->dim[d]] == 0);
- bScrew = (bShiftForcesNeedPbc && dd->bScrewPBC && dd->dim[d] == XX);
+ bScrew = (bShiftForcesNeedPbc && dd->bScrewPBC && dd->dim[d] == XX);
if (fshift == NULL && !bScrew)
{
bShiftForcesNeedPbc = FALSE;