Browse Source

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.
master
Brian C. Lane 14 years ago committed by Harald Hoyer
parent
commit
03cec38834
  1. 2
      dracut-functions

2
dracut-functions

@ -450,7 +450,7 @@ inst_script() {
[[ $debug ]] && _line=$(echo -n "$_line" | tr -c -d '[:print:][:space:]') [[ $debug ]] && _line=$(echo -n "$_line" | tr -c -d '[:print:][:space:]')
_shebang_regex='(#! *)(/[^ ]+).*' _shebang_regex='(#! *)(/[^ ]+).*'
[[ $_line =~ $_shebang_regex ]] || return 1 [[ $_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 # same as above, but specialized for symlinks

Loading…
Cancel
Save