]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fixed bash error in inst_binary()
authorHarald Hoyer <harald@redhat.com>
Mon, 9 Mar 2009 08:17:41 +0000 (09:17 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Mar 2009 08:17:41 +0000 (09:17 +0100)
./dracut-functions: line 108: syntax error near unexpected token `<'
./dracut-functions: line 108: `    done < <(ldd $bin 2>/dev/null)'

dracut-functions

index eba5eee74c05b7d6448a62d30f767896bd7d8733..f5f24d8917109906f01dcad704b380dce528e3d7 100755 (executable)
@@ -79,7 +79,7 @@ inst_binary() {
     local LDSO NAME IO FILE ADDR I1 n f TLIBDIR
     [[ -f $initdir$target ]] && return 0
     # I love bash!
-    while read line; do
+    ldd $bin 2>/dev/null | while read line; do
        [[ $line = 'not a dynamic executable' ]] && return 1
        [[ $line =~ not\ found ]] &&{
            echo "Missing a shared library required by $bin." >&2
@@ -105,7 +105,7 @@ inst_binary() {
            continue
        }
         inst_library "$FILE" 
-    done < <(ldd $bin 2>/dev/null)
+    done
     inst_simple "$bin" "$target"
 }