• Jason Rhinelander's avatar
    Fix check-style exit status · 5a3570c4
    Jason Rhinelander authored
    The check-style exit status wasn't being propagated properly because
    the loops were running in a subshell (and so the change the the
    `errors` variable wasn't in the active command shell).  This fixes it
    by running the greps in subshells and the loops in the main shell.
    
    This also avoids the if(/for(/while( style check on
    tests/CMakeLists.txt, since it *does* have if() statements with no space
    that are producing error messages, but that is (acceptable) CMake style.
    5a3570c4
check-style.sh 790 Bytes