From 59cdb7f73046054e779723dd6ca185ac2615081d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Dec 2018 02:33:10 +1300 Subject: Remove unneeded empty result short circuit --- bash/bash_completion.d/ud.bash | 3 --- 1 file changed, 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[@]}" ) -- cgit v1.2.3