Remove explicit "python" as cpplint.py is executable

Follow-up to #433 as suggested by @peterschrammel.
This commit is contained in:
Michael Tautschnig 2017-01-18 06:49:44 -08:00
parent c2d7554aa0
commit 3ceecf6848
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ do
stagedFiles="$stagedFiles $tmpStaging/$file"
done
output=$(cd $gitRoot; python scripts/cpplint.py $stagedFiles 2>&1)
output=$(cd $gitRoot; scripts/cpplint.py $stagedFiles 2>&1)
retval=$?
if [ $retval -ne 0 ]

View File

@ -89,7 +89,7 @@ for file in $diff_files; do
# Run the linting script and filter by the filter we've build
# of all the modified lines
# The errors from the linter go to STDERR so must be redirected to STDOUT
result=`python $script_folder/cpplint.py $file 2>&1 | { grep -E "$lint_grep_filter" || true; }`
result=`$script_folder/cpplint.py $file 2>&1 | { grep -E "$lint_grep_filter" || true; }`
# Providing some errors were relevant we print them out
if [ "$result" ]