From: Brian C. Lane Date: Tue, 1 Nov 2011 19:13:57 +0000 (-0700) Subject: inst_script should call inst_simple (#750603) X-Git-Tag: 014~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03cec38834b94f291c9293cd6b2dd9f68a6f370a;p=thirdparty%2Fdracut.git inst_script should call inst_simple (#750603) inst_script checks for a shebang, if it doesn't exist it exits. If it does it should not be calling inst_binary, it should call inst_simple like it used to. --- diff --git a/dracut-functions b/dracut-functions index a5d6d1fa0..c54cd7c50 100755 --- a/dracut-functions +++ b/dracut-functions @@ -450,7 +450,7 @@ inst_script() { [[ $debug ]] && _line=$(echo -n "$_line" | tr -c -d '[:print:][:space:]') _shebang_regex='(#! *)(/[^ ]+).*' [[ $_line =~ $_shebang_regex ]] || return 1 - inst "${BASH_REMATCH[2]}" && inst_binary "$_bin" "$@" + inst "${BASH_REMATCH[2]}" && inst_simple "$_bin" "$@" } # same as above, but specialized for symlinks