mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Merge branch 'maint'
This commit is contained in:
commit
018fa2b48c
@ -2467,6 +2467,9 @@ array_build() {
|
|||||||
# Build an array of the indicies of the source array.
|
# Build an array of the indicies of the source array.
|
||||||
eval "keys=(\"\${!$2[@]}\")"
|
eval "keys=(\"\${!$2[@]}\")"
|
||||||
|
|
||||||
|
# Clear the destination array
|
||||||
|
eval "$dest=()"
|
||||||
|
|
||||||
# Read values indirectly via their index. This approach gives us support
|
# Read values indirectly via their index. This approach gives us support
|
||||||
# for associative arrays, sparse arrays, and empty strings as elements.
|
# for associative arrays, sparse arrays, and empty strings as elements.
|
||||||
for i in "${keys[@]}"; do
|
for i in "${keys[@]}"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user