Skip to content

Commit

Permalink
lib/grep: Fix the option availability check (#626)
Browse files Browse the repository at this point in the history
Signed-off-by: Allan Krama Guimarães <allan-kg@users.noreply.github.com>
Co-authored-by: Allan Krama Guimarães <allan-kg@users.noreply.github.com>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
  • Loading branch information
3 people authored Oct 14, 2024
1 parent e712342 commit 1bd9b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# is x grep argument available?
function _omb_grep_flag_available {
: | grep "$1" "" >/dev/null 2>&1
echo | grep "$1" "" >/dev/null 2>&1
}

_omb_grep_options=()
Expand Down

0 comments on commit 1bd9b01

Please sign in to comment.