diff options
author | Allan McRae <allan@archlinux.org> | 2015-01-12 06:23:30 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-12 06:23:30 +0100 |
commit | 018fa2b48c95492312ff3830b368a1f6036d6cf6 (patch) | |
tree | 3925e5a15278ddb9cd1de697c8c014953f2e115a /scripts | |
parent | 0108884952415b4e7c5fe93a1422f441f4bea0aa (diff) | |
parent | a31426d3ea79f7b22d5000f2bfecb52f95246444 (diff) | |
download | pacman-018fa2b48c95492312ff3830b368a1f6036d6cf6.tar.gz pacman-018fa2b48c95492312ff3830b368a1f6036d6cf6.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 1720e647..00beb76e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2467,6 +2467,9 @@ array_build() { # Build an array of the indicies of the source array. eval "keys=(\"\${!$2[@]}\")" + # Clear the destination array + eval "$dest=()" + # Read values indirectly via their index. This approach gives us support # for associative arrays, sparse arrays, and empty strings as elements. for i in "${keys[@]}"; do |