From 91ea008b715fb6697517e678e5e1b13971a76157 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 23 Nov 2012 12:37:58 -0500 Subject: 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 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') 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 -- cgit v1.2.3-24-g4f1b