Fix regression introduced by forgotten file usage
There was two forgotten file instances. Fix error such as:
/root/tmp/rpm-tmp.80ZNEF: line 1: /usr/sbin/post_service: No such file or directory
error: %post(traefik-2.4.14-alt1.x86_64) scriptlet failed, exit status 127
error: traefik-2.4.14-alt1.x86_64: install failed
Fixes: 5ef5c8ff4
("Use file4 instead of file")
This commit is contained in:
parent
ffb8342a16
commit
b893f89a7f
@ -17,7 +17,7 @@ RunMethod()
|
||||
local filter="$exe".files
|
||||
[ -x "$filter" ] || return 0
|
||||
local file_and_type
|
||||
file_and_type=$(file -L -NF$'\t' "$script")
|
||||
file_and_type=$(file4 -L -NF$'\t' "$script")
|
||||
local filtered
|
||||
filtered=$(printf '%s\n' "$file_and_type" |"$filter") ||
|
||||
Fatal "$filter failed"
|
||||
|
@ -318,7 +318,7 @@ VerifyELF()
|
||||
return
|
||||
fi
|
||||
|
||||
if ! t=$(file -b "$f"); then
|
||||
if ! t=$(file4 -b "$f"); then
|
||||
error_relaxed ANY "$f" 'file type not available'
|
||||
return
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user