diff options
author | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-12-23 15:52:33 +0100 |
---|---|---|
committer | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-12-31 11:05:32 +0100 |
commit | 2070808c4bfcd8c73e57530d78441bb4cc1c3a8a (patch) | |
tree | 1accd47a7604e3482ea7aa627ccf706ac38a2afe /pkgs/os-specific/linux/kernel/manual-config.nix | |
parent | e7659b6288d1f9e9378756de032a4893cf3e918e (diff) | |
download | nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar.gz nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar.bz2 nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar.lz nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar.xz nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.tar.zst nixpkgs-2070808c4bfcd8c73e57530d78441bb4cc1c3a8a.zip |
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.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/manual-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/manual-config.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index 3bdb8c4f297..c5ab3e41379 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -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 |