Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/unpacker.eclass | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index dfcb111e00f5..02000dd5d911 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -243,9 +243,8 @@ unpack_makeself() {
        esac
 
        # lets grab the first few bytes of the file to figure out what kind of 
archive it is
-       local decomp= filetype suffix tmpfile="${T}/${FUNCNAME}"
-       "${exe[@]}" 2>/dev/null | head -c 512 > "${tmpfile}"
-       filetype=$(file -b "${tmpfile}") || die
+       local decomp= filetype suffix
+       filetype=$("${exe[@]}" 2>/dev/null | head -c 512 | file -b -) || die
        case ${filetype} in
                *tar\ archive*)
                        decomp=cat
-- 
2.37.3


Reply via email to