Commit 1bb53de2 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

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's avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
parent 38353732
Pipeline #452924 passed with stages
in 1 minute and 10 seconds
......@@ -2,7 +2,7 @@
dim ()
{
if [[ "x$1" = "xcd" ]]; then
if [[ "$1" = "cd" ]]; then
cd $(cat ~/.dim-last-path) || exit
else
command dim "$@"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment