Permalink
Browse files

supply grep with -F to avoid interpretation

  • Loading branch information...
1 parent bd5d0ee commit afb7ec81aefd16c00f96a8f221b57b6578ad9302 @falconindy committed Apr 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 geninit.api
View
@@ -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 ))

0 comments on commit afb7ec8

Please sign in to comment.