Skip to content

Commit

Permalink
set --nocolor flag to make piping xargs safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Jones authored and Greg Lazarev committed Feb 23, 2015
1 parent 55fca47 commit 44f6783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/replace
Expand Up @@ -9,4 +9,4 @@ shift
replace_with=$1
shift

ag -l $find_this $* | xargs sed -i '' "s/$find_this/$replace_with/g"
ag -l --nocolor $find_this $* | xargs sed -i '' "s/$find_this/$replace_with/g"

0 comments on commit 44f6783

Please sign in to comment.