From: Christian Goeschel Ndjomouo Date: Thu, 29 Jan 2026 02:19:33 +0000 (-0500) Subject: tools: (get-options.sh) ensure functionality for out-of-tree builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31cc5f217f49c0712df8c357547e542df70e9641;p=thirdparty%2Futil-linux.git tools: (get-options.sh) ensure functionality for out-of-tree builds Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/tools/get-options.sh b/tools/get-options.sh index 44a1ab1c8..0eeb1fe4b 100755 --- a/tools/get-options.sh +++ b/tools/get-options.sh @@ -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" \