From 85ae3414c6427272a077c2aa059be68d5abea195 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Mon, 20 Mar 2017 20:21:32 +0700 Subject: [PATCH] Fix typo --- lib/grep.sh | 6 +++--- lib/misc.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/grep.sh b/lib/grep.sh index 5c2d1e9..af22c6d 100644 --- a/lib/grep.sh +++ b/lib/grep.sh @@ -7,16 +7,16 @@ grep_flag_available() { GREP_OPTIONS="" # color grep results -if grep-flag-available --color=auto; then +if grep_flag_available --color=auto; then GREP_OPTIONS+=( " --color=auto" ) fi # ignore VCS folders (if the necessary grep flags are available) VCS_FOLDERS="{.bzr,CVS,.git,.hg,.svn}" -if grep-flag-available --exclude-dir=.cvs; then +if grep_flag_available --exclude-dir=.cvs; then GREP_OPTIONS+=( " --exclude-dir=$VCS_FOLDERS" ) -elif grep-flag-available --exclude=.cvs; then +elif grep_flag_available --exclude=.cvs; then GREP_OPTIONS+=( " --exclude=$VCS_FOLDERS" ) fi diff --git a/lib/misc.sh b/lib/misc.sh index ca7dc6a..b5de98a 100644 --- a/lib/misc.sh +++ b/lib/misc.sh @@ -23,4 +23,4 @@ if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then fi # recognize comments -shopt interactive_comments +shopt -s interactive_comments