From b5a3c34fc3d143f6b6adf8a43f7515301fe9b042 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 5 Dec 2024 21:23:48 +0200 Subject: [PATCH] chore(lint): dfm lints --- local/bin/dfm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/local/bin/dfm b/local/bin/dfm index 8d1f4ca..56fb7bb 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -416,7 +416,7 @@ section_helpers() "env:Show environment variables" "functions:Show functions" "nvim:Show nvim keybindings" - "path:Show \$PATH dir by dir" + 'path:Show $PATH dir by dir' "tmux:Show tmux keybindings" "wezterm:Show wezterm keybindings" ) @@ -564,12 +564,12 @@ section_check() case "$1" in a | arch) - [[ "$2" = "" ]] && echo "$X_ARCH" && exit 0 - [[ $X_ARCH = "$2" ]] && exit 0 || exit 1 + [[ $2 == "" ]] && echo "$X_ARCH" && exit 0 + [[ $X_ARCH == "$2" ]] && exit 0 || exit 1 ;; h | host | hostname) - [[ "$2" = "" ]] && echo "$X_HOSTNAME" && exit 0 - [[ $X_HOSTNAME = "$2" ]] && exit 0 || exit 1 + [[ $2 == "" ]] && echo "$X_HOSTNAME" && exit 0 + [[ $X_HOSTNAME == "$2" ]] && exit 0 || exit 1 ;; *) menu_usage "$USAGE_PREFIX" "${MENU[@]}" ;; esac