diff --git a/lib/grep.sh b/lib/grep.sh index df48a9cc1..8ecd5c868 100644 --- a/lib/grep.sh +++ b/lib/grep.sh @@ -2,7 +2,7 @@ # is x grep argument available? function _omb_grep_flag_available { - : | grep "$1" "" >/dev/null 2>&1 + grep "$1" --help >/dev/null 2>&1 } _omb_grep_options=()