mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user