move-docs.sh: simplify redundant conditional

remove impossible check for empty variable after it's been set twice
This commit is contained in:
happysalada 2021-08-19 23:22:40 +09:00 committed by Raphael Megzari
parent fd89fb6248
commit 5b86e637d7

View File

@ -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