Skip to content

Commit 053a2e5

Browse files
committed
More readable creation of grep shell command
1 parent 8795cd7 commit 053a2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var printIssue = function(fileName, lineNum, matchedString){
3535

3636
var findFixmes = function(file){
3737
// Prepare the grep string for execution (uses BusyBox grep)
38-
var grepString = "grep -inHwoE " + fixmeStrings + " \"" + file + "\"";
38+
var grepString = ["grep -inHwoE", fixmeStrings, '"' + file + '"'].join(" ");
3939

4040
// Execute grep with the FIXME patterns
4141
exec(grepString, function (error, stdout, stderr) {

0 commit comments

Comments
 (0)