prefer [[ over [ for multiple conditionals
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
This commit is contained in:
parent
9f156d0adc
commit
db78412f25
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,7 @@ preFixupHooks+=(_moveToShare)
|
||||||
|
|
||||||
_moveToShare() {
|
_moveToShare() {
|
||||||
forceShare=${forceShare:=man doc info}
|
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
|
for d in $forceShare; do
|
||||||
if [ -d "$out/$d" ]; then
|
if [ -d "$out/$d" ]; then
|
||||||
|
@ -20,4 +20,3 @@ _moveToShare() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue