Re: [PATCH v2] docs: find-unused-docs.sh: fixup directory usage

From: Jonathan Corbet

Date: Tue Jan 06 2026 - 16:36:49 EST


Randy Dunlap <rdunlap@xxxxxxxxxxxxx> writes:

> The recent move of this script from scripts/ to tools/docs/
> did not account for the 'cd' directory usage.
> Update "cd .." to "cd ../.." to make the script self-correcting.
>
> This also eliminates a shell warning:
> ./tools/docs/find-unused-docs.sh: line 33: cd: Documentation/: No such file or directory
>
> Fixes: 184414c6a6ca ("docs: move find-unused-docs.sh to tools/docs")
> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> ---
> v2: correct subject line typos (2) (arg, kbd error!)
>
> Cc: Jonathan Corbet <corbet@xxxxxxx>
> Cc: linux-doc@xxxxxxxxxxxxxxx
>
> tools/docs/find-unused-docs.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20251219.orig/tools/docs/find-unused-docs.sh
> +++ linux-next-20251219/tools/docs/find-unused-docs.sh
> @@ -28,7 +28,7 @@ if ! [ -d "$1" ]; then
> fi
>
> cd "$( dirname "${BASH_SOURCE[0]}" )"
> -cd ..
> +cd ../..

Weird, I'm sure I tested that ... evidently not very well. Applied,
thanks.

jon