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/pd.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/pd.bash')
-rw-r--r-- | bash/bashrc.d/pd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/pd.bash b/bash/bashrc.d/pd.bash index 2547c3f0..be42403b 100644 --- a/bash/bashrc.d/pd.bash +++ b/bash/bashrc.d/pd.bash @@ -36,7 +36,7 @@ pd() { return 2 ;; esac - if [[ $target ]] ; then + if [[ -n $target ]] ; then builtin cd "${opts[@]}" -- "$target" else printf 'bash: %s: error calculating parent directory\n' \ |