summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advertise-provided-libraries.PKGBUILDpatch10
1 files changed, 6 insertions, 4 deletions
diff --git a/advertise-provided-libraries.PKGBUILDpatch b/advertise-provided-libraries.PKGBUILDpatch
index fd3700b0..392c321e 100644
--- a/advertise-provided-libraries.PKGBUILDpatch
+++ b/advertise-provided-libraries.PKGBUILDpatch
@@ -1,7 +1,9 @@
if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
- provides+=(
- $(
- find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n'
+ if [ -d "${pkgdir}/usr/lib" ]; then
+ provides+=(
+ $(
+ find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n'
+ )
)
- )
+ fi
fi