From 5b86e637d72adc1838735b85237553c354bd2dda Mon Sep 17 00:00:00 2001 From: happysalada Date: Thu, 19 Aug 2021 23:22:40 +0900 Subject: [PATCH] move-docs.sh: simplify redundant conditional remove impossible check for empty variable after it's been set twice --- pkgs/build-support/setup-hooks/move-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/setup-hooks/move-docs.sh b/pkgs/build-support/setup-hooks/move-docs.sh index ef31dcdce274..e4460f98816d 100644 --- a/pkgs/build-support/setup-hooks/move-docs.sh +++ b/pkgs/build-support/setup-hooks/move-docs.sh @@ -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