Commit 683564bc authored by Jens Petit's avatar Jens Petit

Fix missing file error for clang-tidy

parent 0ab07fec
Pipeline #193025 passed with stages
in 8 minutes and 9 seconds
......@@ -14,7 +14,7 @@ echo "clang-tidy checking changed files compared to target branch ${target_branc
# function to check if C++ file (based on suffix)
function checkCPP(){
if [[ $1 == *.cpp ]];then
if [[ -f $1 ]] && [[ $1 == *.cpp ]]; then
return 0
fi
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment