fix tar argument error
This commit is contained in:
parent
dd28250099
commit
3716d59cd9
|
@ -29,5 +29,5 @@ EOF
|
||||||
libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
|
libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
|
||||||
ld_so="$(echo "$libs" | grep -F '/ld-linux-')"
|
ld_so="$(echo "$libs" | grep -F '/ld-linux-')"
|
||||||
sed -E -i -e 's|PROGRAM|'"$(basename "$src")"'|' -e 's|LD_SO|'"$(basename "$ld_so")"'|' "$dst"
|
sed -E -i -e 's|PROGRAM|'"$(basename "$src")"'|' -e 's|LD_SO|'"$(basename "$ld_so")"'|' "$dst"
|
||||||
tar -czh --transform 's/.*\///g' "$src" $libs >>"$dst" "$@" 2> >(grep -v 'Removing leading' >&2)
|
tar -czh --transform 's/.*\///g' "$src" $libs "$@" >>"$dst" 2> >(grep -v 'Removing leading' >&2)
|
||||||
chmod +x "$dst"
|
chmod +x "$dst"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user