From: Harald Hoyer Date: Mon, 9 Mar 2009 08:17:41 +0000 (+0100) Subject: fixed bash error in inst_binary() X-Git-Tag: 0.1~293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c86253310111e10b372cbbb0c599e1798069da7;p=thirdparty%2Fdracut.git fixed bash error in inst_binary() ./dracut-functions: line 108: syntax error near unexpected token `<' ./dracut-functions: line 108: ` done < <(ldd $bin 2>/dev/null)' --- diff --git a/dracut-functions b/dracut-functions index eba5eee74..f5f24d891 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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" }