move-docs.sh: shellcheck 2166

https://github.com/koalaman/shellcheck/wiki/SC2166
This commit is contained in:
happysalada 2021-06-24 13:53:49 +09:00 committed by Raphael Megzari
parent b1c5a9f008
commit 4e3d905b0d

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 "$forceShare" ] || [ -z "$out" ]; then return; fi
for d in $forceShare; do
if [ -d "$out/$d" ]; then