Skip to content
Browse files
[spellcheck] ag: use short option to avoid argument error due to synt…
…ax differences
  • Loading branch information
3nids committed Dec 19, 2016
1 parent 594d1aa commit f9db068fedc7b8bf1a22a7c76388be92530f5e45
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/
@@ -30,7 +30,8 @@ fi

exec 5>&1
OUTPUT=$(unbuffer ag --smart-case --all-text --nopager --numbers --word-regexp --path-to-ignore $AGIGNORE "$RE" $FILES |tee /dev/fd/5)
# "path-to-ignore" option differs on ag version: --path-to-ignore on fedora, --path-to-agignore on ubuntu 16.04: using short option
OUTPUT=$(unbuffer ag --smart-case --all-text --nopager --numbers --word-regexp -p $AGIGNORE "$RE" $FILES |tee /dev/fd/5)

if [[ ! -z $OUTPUT ]]; then

0 comments on commit f9db068

Please sign in to comment.