Skip to content

Commit

Permalink
trying to fix shell: sh -e {0}
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi authored and dtdavi1 committed Jul 29, 2021
1 parent 6e9651f commit 7ae88bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/code_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ elif [ $QUICK_CHECK -eq 1 ]; then
# Undo changes to suppression file
sed -i -e "s@$tmp2@$f@" $SUPPRESS

python3 $hg_root/tools/cpplint.py $tmp2 2>&1 \
python $hg_root/tools/cpplint.py $tmp2 2>&1 \
| sed -e "s@$tmp2@$f@g" -e "s@$tmp2base@$prefix@g" \
| grep -v 'Total errors found: 0'

Expand All @@ -151,8 +151,8 @@ fi

# cpplint
if [ $xmlout -eq 1 ]; then
(echo $CPPLINT_FILES | xargs python3 tools/cpplint.py 2>&1) \
| python3 tools/cpplint_to_cppcheckxml.py 2> $xmldir/cpplint.xml
(echo $CPPLINT_FILES | xargs python tools/cpplint.py 2>&1) \
| python tools/cpplint_to_cppcheckxml.py 2> $xmldir/cpplint.xml
elif [ $QUICK_CHECK -eq 0 ]; then
echo $CPPLINT_FILES | xargs python3 tools/cpplint.py 2>&1
echo $CPPLINT_FILES | xargs python tools/cpplint.py 2>&1
fi

0 comments on commit 7ae88bd

Please sign in to comment.