mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nixos/modules: Split recursive mkdir with permissions
Detected by ShellCheck as violating <https://github.com/koalaman/shellcheck/wiki/SC2174>.
This commit is contained in:
parent
4e977402c7
commit
d516870f42
|
@ -214,7 +214,8 @@ in
|
||||||
''
|
''
|
||||||
# Create the required /bin/sh symlink; otherwise lots of things
|
# Create the required /bin/sh symlink; otherwise lots of things
|
||||||
# (notably the system() function) won't work.
|
# (notably the system() function) won't work.
|
||||||
mkdir -m 0755 -p /bin
|
mkdir -p /bin
|
||||||
|
chmod 0755 /bin
|
||||||
ln -sfn "${cfg.binsh}" /bin/.sh.tmp
|
ln -sfn "${cfg.binsh}" /bin/.sh.tmp
|
||||||
mv /bin/.sh.tmp /bin/sh # atomically replace /bin/sh
|
mv /bin/.sh.tmp /bin/sh # atomically replace /bin/sh
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue