Skip to content

Commit

Permalink
Prevent bash file expansions breaking the script
Browse files Browse the repository at this point in the history
Fixes an issue where the oclint-json-compilation-database call fails if there is an .xcworkspace and a .xcproj due to bash filename expansions
  • Loading branch information
JosephEarl committed Sep 16, 2014
1 parent 44bef0b commit 8007503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/shell/run-sonar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ if [ "$oclint" = "on" ]; then
includedCommandLineFlags=""
echo "$srcDirs" | sed -n 1'p' | tr ',' '\n' > tmpFileRunSonarSh
while read word; do
includedCommandLineFlags+=" --include .*/${currentDirectory}/${word}.*"
includedCommandLineFlags+=" --include '.*/${currentDirectory}/${word}.*'"
done < tmpFileRunSonarSh
rm -rf tmpFileRunSonarSh
if [ "$vflag" = "on" ]; then
Expand Down

0 comments on commit 8007503

Please sign in to comment.