diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:33:10 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:33:10 +1300 |
commit | 59cdb7f73046054e779723dd6ca185ac2615081d (patch) | |
tree | 792a0ab5651298431f6a3986fdad4ee0235d9829 /bash | |
parent | Remove redundant error code in short circuits (diff) | |
download | dotfiles-59cdb7f73046054e779723dd6ca185ac2615081d.tar.gz dotfiles-59cdb7f73046054e779723dd6ca185ac2615081d.zip |
Remove unneeded empty result short circuit
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/ud.bash | 3 |
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[@]}" ) |