set --nocolor flag to make piping xargs safe

This commit is contained in:
Zachary Jones 2015-02-17 20:24:46 -05:00 committed by Greg Lazarev
parent 55fca47954
commit 44f678312d

View file

@ -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"