From caaf453c80e5742bd6d1f0faf4c5e8e275510dad Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 20 Jan 2025 10:40:54 +0300 Subject: [PATCH] build: replace `| head -n 1` with `-print -quit` --- scripts/detect-libphosh-api-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/detect-libphosh-api-version.sh b/scripts/detect-libphosh-api-version.sh index 7549b7e..d2ee985 100644 --- a/scripts/detect-libphosh-api-version.sh +++ b/scripts/detect-libphosh-api-version.sh @@ -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."