]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: (get-options.sh) ensure functionality for out-of-tree builds
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 02:19:33 +0000 (21:19 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 2 Feb 2026 13:06:23 +0000 (08:06 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tools/get-options.sh

index 44a1ab1c8faddb397b5f150758ac0c9360e9378a..0eeb1fe4b84a143a0ef803d0c4e88b8f71181691 100755 (executable)
@@ -20,7 +20,7 @@
 TOP_SRCDIR=${TOP_SRCDIR:-../}
 
 # Directories that contain relevant source files for util-linux programs.
-src_file_paths="$(grep -rE --include="*.c" --exclude="*test_*"          \
+src_file_paths="$(cd "${TOP_SRCDIR}" && grep -rE --include="*.c" --exclude="*test_*"          \
                         --exclude-dir="lib*"                            \
                         --exclude-dir="po*"                             \
                         --exclude-dir="tests"                           \