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:
Jan Lindemann 2019-02-05 15:02:36 +00:00
commit 019dd47c02

View file

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