aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/gd.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-10 17:06:07 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-10 17:06:07 +1300
commitfc3b8c17f0756e3a397928529349d11601d79aed (patch)
treedf889db86e3a371484b2d719c5dba07b25ca44d1 /sh/shrc.d/gd.sh
parentb5b8f9b71e7cb067aef507d31aef280c798b2082 (diff)
downloaddotfiles-fc3b8c17f0756e3a397928529349d11601d79aed.tar.gz
dotfiles-fc3b8c17f0756e3a397928529349d11601d79aed.zip
Change some return codes for dir marking funcs
The mark not being set isn't really a usage error for the function given.
Diffstat (limited to 'sh/shrc.d/gd.sh')
-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 5a3f54b0..fa5776f2 100644
--- a/sh/shrc.d/gd.sh
+++ b/sh/shrc.d/gd.sh
@@ -10,7 +10,7 @@ gd() {
# Complain if mark not actually set yet
if ! [ -n "$PMD" ] ; then
printf >&2 'gd(): Mark not set\n'
- return 2
+ return 1
fi
# Go to the marked directory