mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
move-docs.sh: simplify redundant conditional
remove impossible check for empty variable after it's been set twice
This commit is contained in:
parent
fd89fb6248
commit
5b86e637d7
@ -6,7 +6,7 @@ preFixupHooks+=(_moveToShare)
|
||||
|
||||
_moveToShare() {
|
||||
forceShare=${forceShare:=man doc info}
|
||||
if [ -z "$forceShare" -o -z "$out" ]; then return; fi
|
||||
if [[ -z "$out" ]]; then return; fi
|
||||
|
||||
for d in $forceShare; do
|
||||
if [ -d "$out/$d" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user