From 4f674a8355ec3db6d491e83fdf6e0961e61c1486 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 30 Nov 2018 14:16:22 +1300 Subject: Suppress a couple of ShellCheck errors --- bash/bashrc.d/pushd.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash/bashrc.d/pushd.bash') diff --git a/bash/bashrc.d/pushd.bash b/bash/bashrc.d/pushd.bash index ec621037..e708d3e8 100644 --- a/bash/bashrc.d/pushd.bash +++ b/bash/bashrc.d/pushd.bash @@ -1,4 +1,5 @@ # Make pushd default to $HOME if no arguments given, much like cd pushd() { + # shellcheck disable=SC2164 builtin pushd "${@:-"$HOME"}" } -- cgit v1.2.3