Skip to content

Commit

Permalink
GitHub Actions: another bash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinekitty committed Jul 6, 2024
1 parent a6afed2 commit 5d726f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate/run
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ echo ""
echo "Building C source code for 'generate' program."
CPPCHECK_OPTIONS="-I . -I novas -I vsop -I top2013 --error-exitcode=9 --enable=all --suppress=variableScope --suppress=unusedStructMember --suppress=missingIncludeSystem --suppress=unusedFunction"
if [[ "${OS_NAME}" == "macOS" ]]; then
CPPCHECK_OPTIONS+=--check-level=exhaustive
CPPCHECK_OPTIONS+=" --check-level=exhaustive"
fi
cppcheck ${CPPCHECK_OPTIONS} generate.c earth.c astro_vector.c chebyshev.c codegen.c ephfile.c vsop/vsop.c top2013/top2013.c || exit 1
./build || Fail "Could not build 'generate' program from source."
Expand Down
2 changes: 1 addition & 1 deletion generate/unit_test_c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Fail()

CPPCHECK_OPTIONS="-I ../source/c --enable=all --inline-suppr --suppress=unmatchedSuppression --suppress=variableScope --suppress=shadowFunction --suppress=unusedFunction --suppress=missingIncludeSystem --suppress=constParameterCallback --error-exitcode=9"
if [[ "${OS_NAME}" == "macOS" ]]; then
CPPCHECK_OPTIONS+=--check-level=exhaustive
CPPCHECK_OPTIONS+=" --check-level=exhaustive"
fi
cppcheck ${CPPCHECK_OPTIONS} ../source/c ../demo/c/*.c ctest.c || exit 1

Expand Down

0 comments on commit 5d726f2

Please sign in to comment.