trying to fix hhc exit code

This commit is contained in:
Charlton, Scott R 2021-09-16 12:28:47 -06:00
parent e6ec04d9d4
commit f8369c15e9

View File

@ -79,9 +79,11 @@ jobs:
bash fixup_html.bash bash fixup_html.bash
popd popd
# hhc returns 1 on success # hhc returns 1 on success
set +e
'C:\Program Files (x86)\HTML Help Workshop\hhc' phreeqc3.hhp | tee hhc.out 'C:\Program Files (x86)\HTML Help Workshop\hhc' phreeqc3.hhp | tee hhc.out
set -e
status=${PIPESTATUS[0]} status=${PIPESTATUS[0]}
if [ $status -eq 1 ]; then if [ "$status" -eq 1 ]; then
echo "[OK]" echo "[OK]"
exit 0 exit 0
else else