From 3716d59cd966b42a362780d4a1fcc9154ad9ebb0 Mon Sep 17 00:00:00 2001 From: outofmemo Date: Mon, 10 Oct 2022 01:25:37 +0800 Subject: [PATCH] fix tar argument error --- packelf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packelf.sh b/packelf.sh index b82a6b3..fde811c 100755 --- a/packelf.sh +++ b/packelf.sh @@ -29,5 +29,5 @@ EOF libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')" ld_so="$(echo "$libs" | grep -F '/ld-linux-')" 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"