aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/pmd.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-27 22:52:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-27 22:52:40 +1200
commitcbbec36d4403dbed6d61232e86b5d4995c8da1fe (patch)
tree9d72ab0bc7b93adb29559624975d519606621f87 /sh/shrc.d/pmd.sh
parentRemove redundant `|| return` from gd() (diff)
downloaddotfiles-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.sh2
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