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:
Виталий Чикунов 2021-08-18 01:17:07 +03:00
parent ffb8342a16
commit b893f89a7f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ RunMethod()
local filter="$exe".files local filter="$exe".files
[ -x "$filter" ] || return 0 [ -x "$filter" ] || return 0
local file_and_type local file_and_type
file_and_type=$(file -L -NF$'\t' "$script") file_and_type=$(file4 -L -NF$'\t' "$script")
local filtered local filtered
filtered=$(printf '%s\n' "$file_and_type" |"$filter") || filtered=$(printf '%s\n' "$file_and_type" |"$filter") ||
Fatal "$filter failed" Fatal "$filter failed"

View File

@ -318,7 +318,7 @@ VerifyELF()
return return
fi fi
if ! t=$(file -b "$f"); then if ! t=$(file4 -b "$f"); then
error_relaxed ANY "$f" 'file type not available' error_relaxed ANY "$f" 'file type not available'
return return
fi fi