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 2011-11-01 12:13:57 -07:00 committed by Harald Hoyer
parent 03b5494ca1
commit 03cec38834
1 changed files with 1 additions and 1 deletions

View File

@ -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