linux/kernel/manual-config: prevent chmod errors when there is no arch specific Makefile

In such cases the glob pattern might not match anything and chmod will complain about the missing argument.
This commit is contained in:
Dominik Xaver Hörl
2020-12-23 15:52:33 +01:00
parent e7659b6288
commit 2070808c4b

View File

@@ -249,8 +249,7 @@ let
find . -type f -name '*.lds' -print0 | xargs -0 -r chmod u-w
# Keep root and arch-specific Makefiles
chmod u-w Makefile
chmod u-w arch/$arch/Makefile*
chmod u-w Makefile arch/"$arch"/Makefile*
# Keep whole scripts dir
chmod u-w -R scripts