aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-27 22:53:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-27 22:53:36 +1200
commitee2a3a4d87665fb8b79363b1f78250908ec78b94 (patch)
tree6c72e1ea9517c22b1cd21c84de60becd385b1297 /sh
parentcbbec36d4403dbed6d61232e86b5d4995c8da1fe (diff)
downloaddotfiles-ee2a3a4d87665fb8b79363b1f78250908ec78b94.tar.gz
Revert "Remove redundant `|| return` from gd()"
This reverts commit 1302b279bf2b1b2ae76ea8251a32e480d64f2f7a. This was added because of Shellcheck being fussy
Diffstat (limited to '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 10135d01..9f6a43e7 100644
--- a/sh/shrc.d/gd.sh
+++ b/sh/shrc.d/gd.sh
@@ -14,5 +14,5 @@ gd() {
fi
# Go to the marked directory
- cd -- "$PMD"
+ cd -- "$PMD" || return
}