libmakepkg: only output package file names when checking for build references
The leading directory is distraction from identifying the files containing build references. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
62bfba53db
commit
e4f13e62cf
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ warn_build_references() {
|
|||
mapfile -t refs < <(find "$pkgdir" -type f -exec grep -l "${!var}" {} +)
|
||||
if (( ${#refs} > 0 )); then
|
||||
warning "$(gettext 'Package contains reference to %s')" "\$$var"
|
||||
printf '%s\n' "${refs[@]}" >&2
|
||||
printf '%s\n' "${refs[@]#"$pkgdir/"}" >&2
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
|
|
Loading…
Add table
Reference in a new issue