aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-27 21:33:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-27 21:33:02 +1200
commit5db5287e727a2c73278bd33b9728a3cef1a741eb (patch)
tree98619725af807c864b136ce9602dd8259ed16d70
parentAdd safety to bd() (diff)
downloaddotfiles-5db5287e727a2c73278bd33b9728a3cef1a741eb.tar.gz
dotfiles-5db5287e727a2c73278bd33b9728a3cef1a741eb.zip
Use -z rather than !-n
-rw-r--r--sh/shrc.d/gd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/gd.sh b/sh/shrc.d/gd.sh
index fa5776f2..9f6a43e7 100644
--- a/sh/shrc.d/gd.sh
+++ b/sh/shrc.d/gd.sh
@@ -8,7 +8,7 @@ gd() {
fi
# Complain if mark not actually set yet
- if ! [ -n "$PMD" ] ; then
+ if [ -z "$PMD" ] ; then
printf >&2 'gd(): Mark not set\n'
return 1
fi