From db78412f25e533f8f73fe9af70fdfb3c98c7e143 Mon Sep 17 00:00:00 2001 From: Raphael Megzari Date: Sat, 26 Jun 2021 12:55:08 +0900 Subject: [PATCH] prefer [[ over [ for multiple conditionals Co-authored-by: Jonas Chevalier --- pkgs/build-support/setup-hooks/move-docs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } -