diff --git a/scripts/pkg.sh b/scripts/pkg.sh index d079a9ef..5b1730f1 100644 --- a/scripts/pkg.sh +++ b/scripts/pkg.sh @@ -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