summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-23 18:37:58 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-26 02:08:57 +0100
commit91ea008b715fb6697517e678e5e1b13971a76157 (patch)
tree268acd24dc363bb8f33b3143f197258cf4860eac /functions
parent56cda33a8cdfd3f11803cd8f7bd79be15f6ca23f (diff)
downloadmkinitcpio-91ea008b715fb6697517e678e5e1b13971a76157.tar.gz
mkinitcpio-91ea008b715fb6697517e678e5e1b13971a76157.tar.xz
unique _modpaths arrays in during build
Declaring _modpaths as an associative array allows us to forego the printf|sort -u|xargs cp pipeline as we can guarantee that the array is already prepared. 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 491fc6c..e79d057 100644
--- a/functions
+++ b/functions
@@ -331,7 +331,7 @@ add_module() {
# aggregate modules and add them all at once to save some forks
quiet "adding module: %s" "$1"
- _modpaths+=("$path")
+ _modpaths["$path"]=1
_addedmodules["${module//-/_}"]=1
# handle module quirks