build: replace | head -n 1 with -print -quit

This commit is contained in:
Maxim Slipenko 2025-01-20 10:40:54 +03:00
parent 2d5195957d
commit caaf453c80

View File

@ -1,6 +1,6 @@
#!/bin/bash
pc_file=$(find "/usr/lib64/pkgconfig" -maxdepth 1 -type f -name "libphosh-*.pc" | head -n 1)
pc_file=$(find "/usr/lib64/pkgconfig" -maxdepth 1 -type f -name "libphosh-*.pc" -print -quit)
if [ -z "$pc_file" ]; then
echo "File libphosh-*.pc not found."