diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-27 22:52:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-27 22:52:40 +1200 |
commit | cbbec36d4403dbed6d61232e86b5d4995c8da1fe (patch) | |
tree | 9d72ab0bc7b93adb29559624975d519606621f87 /sh/shrc.d/pmd.sh | |
parent | Remove redundant `|| return` from gd() (diff) | |
download | dotfiles-cbbec36d4403dbed6d61232e86b5d4995c8da1fe.tar.gz dotfiles-cbbec36d4403dbed6d61232e86b5d4995c8da1fe.zip |
More error-resistant sd()
Diffstat (limited to 'sh/shrc.d/pmd.sh')
-rw-r--r-- | sh/shrc.d/pmd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/pmd.sh b/sh/shrc.d/pmd.sh index c96a50bd..4b0cd5bd 100644 --- a/sh/shrc.d/pmd.sh +++ b/sh/shrc.d/pmd.sh @@ -1,6 +1,6 @@ # Print the marked directory pmd() { - if ! [ -n "$PMD" ] ; then + if [ -z "$PMD" ] ; then printf >&2 'pmd(): Mark not set\n' return 1 fi |