diff --git a/do_oclint.sh b/do_oclint.sh index 1889889..424b1fe 100755 --- a/do_oclint.sh +++ b/do_oclint.sh @@ -1,7 +1,7 @@ #!/bin/bash -cpp_files=`find . | egrep "^\./boost_graph_cookbook_1/.*\.cpp$"| egrep -v "_test\.cpp$"` -h_files=`find . | egrep "^\./boost_graph_cookbook_1/.*_.*\.h$"` +cpp_files=$(find . | egrep "^\./boost_graph_cookbook_1/.*\.cpp$"| egrep -v "_test\.cpp$") +h_files=$(find . | egrep "^\./boost_graph_cookbook_1/.*_.*\.h$") ./oclint-0.10.3/bin/oclint -o oclint.log \ -disable-rule ShortVariableName \ @@ -36,4 +36,4 @@ then else echo "OCLint: Fail" exit 1 -fi \ No newline at end of file +fi