From 51f0d9737c31e9d905748e0f1a4d9a47508ec810 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 2 Jan 2017 16:59:07 +1300 Subject: Soothe shellcheck about new marked dirs funcs --- sh/shrc.d/gd.sh | 2 +- sh/shrc.d/md.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/shrc.d/gd.sh b/sh/shrc.d/gd.sh index 754bd8ff..5a3f54b0 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 } diff --git a/sh/shrc.d/md.sh b/sh/shrc.d/md.sh index 1f8a8aaf..7085d258 100644 --- a/sh/shrc.d/md.sh +++ b/sh/shrc.d/md.sh @@ -26,5 +26,6 @@ md() { fi # Save the specified path in the marked directory var + # shellcheck disable=SC2034 PMD=$1 } -- cgit v1.2.3