diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 12:55:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 12:55:18 +1200 |
commit | f06a44231a91ba3561c9492c1e31b1c30c165130 (patch) | |
tree | fd1f2f72a65ae56c5dc0c4a07319c292d8433a5c /bash/bashrc.d/bd.bash | |
parent | Correct argument test in bd() and prompt() (diff) | |
download | dotfiles-f06a44231a91ba3561c9492c1e31b1c30c165130.tar.gz dotfiles-f06a44231a91ba3561c9492c1e31b1c30c165130.zip |
Use consistent [[ syntax
Explicit -n, ! within [[
Diffstat (limited to 'bash/bashrc.d/bd.bash')
-rw-r--r-- | bash/bashrc.d/bd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash index 73e98299..1c326c88 100644 --- a/bash/bashrc.d/bd.bash +++ b/bash/bashrc.d/bd.bash @@ -25,7 +25,7 @@ _bd() { # Build a list of dirs in $PWD local -a dirs while read -d / -r dir ; do - if [[ $dir ]] ; then + if [[ -n $dir ]] ; then dirs=("${dirs[@]}" "$dir") fi done < <(printf %s "$PWD") |