From 1bb53de217ee196e6ca49e46aa4cdda18f16108f Mon Sep 17 00:00:00 2001 From: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Tue, 16 Nov 2021 19:14:00 +0100 Subject: [PATCH] bash-completion: fix shellcheck SC2268 if [[ "x$1" = "xcd" ]]; then ^---^ SC2268: Avoid x-prefix in comparisons as it no longer serves a purpose. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 8dcf61a..e88aa4f 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ dim () { - if [[ "x$1" = "xcd" ]]; then + if [[ "$1" = "cd" ]]; then cd $(cat ~/.dim-last-path) || exit else command dim "$@" -- GitLab