Blame 0021-dracut-functions.sh-fixup-inst_libdir_file-again.patch
|
Harald Hoyer |
d1bf89 |
From 7828692f97c2db3af36ad8ac3e75b60cfd971875 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
d1bf89 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
d1bf89 |
Date: Fri, 15 Jun 2012 09:34:00 +0200
|
|
Harald Hoyer |
d1bf89 |
Subject: [PATCH] dracut-functions.sh: fixup inst_libdir_file() again
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
---
|
|
Harald Hoyer |
d1bf89 |
dracut-functions.sh | 8 ++++----
|
|
Harald Hoyer |
d1bf89 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
d1bf89 |
index 38367b4..7439131 100755
|
|
Harald Hoyer |
d1bf89 |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
d1bf89 |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
d1bf89 |
@@ -705,16 +705,16 @@ inst_libdir_file() {
|
|
Harald Hoyer |
d1bf89 |
local _pattern=$2
|
|
Harald Hoyer |
d1bf89 |
shift 2
|
|
Harald Hoyer |
d1bf89 |
for _dir in $libdirs; do
|
|
Harald Hoyer |
d1bf89 |
- for _i in $_dir/$@; do
|
|
Harald Hoyer |
d1bf89 |
+ for _i in "$@"; do
|
|
Harald Hoyer |
d1bf89 |
for _f in "$_dir"/$_i; do
|
|
Harald Hoyer |
d1bf89 |
- [[ "$_i" =~ $_pattern ]] || continue
|
|
Harald Hoyer |
d1bf89 |
- [[ -e "$_i" ]] && dracut_install "$_i"
|
|
Harald Hoyer |
d1bf89 |
+ [[ "$_f" =~ $_pattern ]] || continue
|
|
Harald Hoyer |
d1bf89 |
+ [[ -e "$_f" ]] && dracut_install "$_f"
|
|
Harald Hoyer |
d1bf89 |
done
|
|
Harald Hoyer |
d1bf89 |
done
|
|
Harald Hoyer |
d1bf89 |
done
|
|
Harald Hoyer |
d1bf89 |
else
|
|
Harald Hoyer |
d1bf89 |
for _dir in $libdirs; do
|
|
Harald Hoyer |
d1bf89 |
- for _i in $_dir/$@; do
|
|
Harald Hoyer |
d1bf89 |
+ for _i in "$@"; do
|
|
Harald Hoyer |
d1bf89 |
for _f in "$_dir"/$_i; do
|
|
Harald Hoyer |
d1bf89 |
[[ -e "$_f" ]] && dracut_install "$_f"
|
|
Harald Hoyer |
d1bf89 |
done
|