summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorBrian Parsons <brian@pmex.com>2012-06-11 23:30:10 +0200
committerDave Reisner <dreisner@archlinux.org>2012-06-12 00:38:35 +0200
commit7cf7ac4eb2c29a2b1aa748dae7658da5fbbc3a18 (patch)
tree49b7aed77ff5b0ef0a2a21e18f3d77be67a878cc /functions
parent5d1f8aa4e5e1726260316adc73963885e07c8d09 (diff)
downloadmkinitcpio-7cf7ac4eb2c29a2b1aa748dae7658da5fbbc3a18.tar.gz
mkinitcpio-7cf7ac4eb2c29a2b1aa748dae7658da5fbbc3a18.tar.xz
Update module filter to be aware of hyphens in the MODULES array
[dave: fix whitespace and re-add needed quoting] Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 4a62d8e..e9fb81a 100644
--- a/functions
+++ b/functions
@@ -590,7 +590,7 @@ write_image_config() {
. "$CONFIG"
# sanitize of any extra whitespace
- read -ra modules <<< "$MODULES"
+ read -ra modules <<<"${MODULES//-/_}"
for mod in "${modules[@]}"; do
in_array "${mod%\?}" "${ADDED_MODULES[@]}" || continue
add+=("${mod%\?}")