diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-11-23 18:37:58 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-11-26 02:08:57 +0100 |
commit | 91ea008b715fb6697517e678e5e1b13971a76157 (patch) | |
tree | 268acd24dc363bb8f33b3143f197258cf4860eac /functions | |
parent | 56cda33a8cdfd3f11803cd8f7bd79be15f6ca23f (diff) | |
download | mkinitcpio-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-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |