]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: find-unused-docs.sh: fixup directory usage
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 2 Jan 2026 20:06:57 +0000 (12:06 -0800)
committerJonathan Corbet <corbet@lwn.net>
Tue, 6 Jan 2026 21:36:07 +0000 (14:36 -0700)
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@infradead.org>
Fixes: 184414c6a6ca (docs: move find-unused-docs.sh to tools/docs)
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260102200657.1040234-1-rdunlap@infradead.org>

tools/docs/find-unused-docs.sh

index 05552dbda5bcb2f20ca9ad18c3d38038d663fad6..ca4e607ec3f720ae4631642129456f1b86126313 100755 (executable)
@@ -28,7 +28,7 @@ if ! [ -d "$1" ]; then
 fi
 
 cd "$( dirname "${BASH_SOURCE[0]}" )"
-cd ..
+cd ../..
 
 cd Documentation/