aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:33:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:33:10 +1300
commit59cdb7f73046054e779723dd6ca185ac2615081d (patch)
tree792a0ab5651298431f6a3986fdad4ee0235d9829
parentc3af0c31efbc23472a103536280a4d839555e198 (diff)
downloaddotfiles-59cdb7f73046054e779723dd6ca185ac2615081d.tar.gz
Remove unneeded empty result short circuit
-rw-r--r--bash/bash_completion.d/ud.bash3
1 files changed, 0 insertions, 3 deletions
diff --git a/bash/bash_completion.d/ud.bash b/bash/bash_completion.d/ud.bash
index 5170eb57..2311ae3c 100644
--- a/bash/bash_completion.d/ud.bash
+++ b/bash/bash_completion.d/ud.bash
@@ -29,9 +29,6 @@ _ud() {
dirnames=("${COMP_WORDS[COMP_CWORD]}"*/)
dirnames=("${dirnames[@]%/}")
- # Bail if no results to prevent empty output
- ((${#dirnames[@]})) || exit 1
-
# Print results null-delimited
printf '%s\0' "${dirnames[@]}"
)