Skip to content

Commit

Permalink
[spellcheck] ag: use short option to avoid argument error due to synt…
Browse files Browse the repository at this point in the history
…ax differences
  • Loading branch information
3nids committed Dec 19, 2016
1 parent 594d1aa commit f9db068
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/chkspelling_ag.sh
Expand Up @@ -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
Expand Down

0 comments on commit f9db068

Please sign in to comment.