Skip to content

Commit

Permalink
supply grep with -F to avoid interpretation
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Apr 29, 2011
1 parent bd5d0ee commit afb7ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geninit.api
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ add_driver_classes() { # {{{

# only add what autodetect found if we have a module cache
[[ -s $autodetect_cache ]] &&
IFS=$'\n' read -rd '' -a mods < <(grep -xf <(printf '%s\n' "${mods[@]//-/_}") "$autodetect_cache")
IFS=$'\n' read -rd '' -a mods < <(grep -xFf <(printf '%s\n' "${mods[@]//-/_}") "$autodetect_cache")

for mod in "${mods[@]}"; do
add_module "$mod" && (( ++ret ))
Expand Down

0 comments on commit afb7ec8

Please sign in to comment.