diff options
author | Harald Hoyer <harald@redhat.com> | 2017-01-12 10:19:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 10:19:07 +0100 |
commit | fb1baf9218c12d634e82faaa0ca6cc1b2ac5fc13 (patch) | |
tree | 0be8d18b86cee45613059ba4e63ffb65eca7922c | |
parent | 13749f547357f8e9ec398680548f818dea3aba1c (diff) | |
parent | db1e2bfc4f049261ae2d407568ff39569b36d98c (diff) |
Merge pull request #5068 from keszybz/kernel-install-process-sub
kernel-install: avoid process substitution
-rw-r--r-- | src/kernel-install/kernel-install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install index a95b9717f0..c7d9f4eea9 100644 --- a/src/kernel-install/kernel-install +++ b/src/kernel-install/kernel-install @@ -34,7 +34,7 @@ dropindirs_sort() local -a files local f d i - readarray -t files < <( + readarray -t files <<<"$( for d in "$@"; do for i in "$d/"*"$suffix"; do if [[ -e "$i" ]]; then @@ -42,7 +42,7 @@ dropindirs_sort() fi done done | sort -Vu - ) + )" for f in "${files[@]}"; do for d in "$@"; do @@ -104,11 +104,11 @@ fi ret=0 -readarray -t PLUGINS < <( +readarray -t PLUGINS <<<"$( dropindirs_sort ".install" \ "/etc/kernel/install.d" \ "/usr/lib/kernel/install.d" -) +)" case $COMMAND in add) |