mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
pkg.sh log-install: Fix link-in target for shared libraries
Shared libraries were detected as executables, which is true in a way, but still the log-install target shouldn't wrap them into scripts. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
73f97ba3b4
commit
019dd47c02
1 changed files with 1 additions and 1 deletions
|
|
@ -660,7 +660,7 @@ EOT
|
|||
echo -e "#!/bin/bash\n\nexec /bin/bash \"$from\" \"\$@\"" > "$tmp"
|
||||
;;
|
||||
*)
|
||||
if file "$from" | grep -qi executable; then
|
||||
if file "$from" | grep -qi executable && [[ "$from" =~ "\.so$\|\.so\.[0-9.]*" ]]; then
|
||||
echo -e "#!/bin/bash\n\nexec \"$from\" \"\$@\"" > "$tmp"
|
||||
else
|
||||
ln -sf $from $to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue