Darwin/OSX - bash doesn't understand '|&' - alt format for stderr redirect pipe.

This commit is contained in:
Juha Laukkanen 2015-11-17 21:08:46 +02:00
parent 4fa8834de4
commit ade57809c1
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ if [[ "$cppcheck" -eq 1 ]] && [[ -x `which cppcheck` ]]; then
log=cpp_check__${flat_d}.log
rm -f $log
cppcheck $check -j $ncpu --platform=unix32 $define $root/$d |& tee $log
cppcheck $check -j $ncpu --platform=unix32 $define $root/$d 2>&1 | tee $log
# Create a small summary (warning it might miss some issues)
fgrep -e "(warning)" -e "(error)" -e "(style)" -e "(performance)" -e "(portability)" $log >> $summary
done