diff --git a/pkgs/build-support/setup-hooks/move-docs.sh b/pkgs/build-support/setup-hooks/move-docs.sh index e4bfc13fc491..9e1bc26cdf12 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" ] || [ -z "$out" ]; then return; fi + if [[ -z "$forceShare" || -z "$out" ]]; then return; fi for d in $forceShare; do if [ -d "$out/$d" ]; then @@ -20,4 +20,3 @@ _moveToShare() { fi done } -