From 4b4955ff53a22bb87b14546b5a16c40e585398e6 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 28 Aug 2024 09:08:27 +0200 Subject: [PATCH] cheatsheet.sh: Fix shellcheck ... and slightly change description Signed-off-by: Fini Jastrow --- bin/scripts/cheatsheet.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/scripts/cheatsheet.sh b/bin/scripts/cheatsheet.sh index 5c9986f4e..761260696 100755 --- a/bin/scripts/cheatsheet.sh +++ b/bin/scripts/cheatsheet.sh @@ -2,14 +2,15 @@ # Nerd Fonts Version: 3.2.1 # Script Version: 1.0.0 # -# Search for a glyph by its name in all patched fonts +# Search for a glyph by part of its name in all patchsets # Usage: ./cheatsheet.sh divider +# shellcheck disable=SC1091 # Do not pull in the sourced file source ./lib/i_all.sh # Search the key on the declared variables for glyph in ${!i_*}; do - if [[ $glyph == *"$1"* ]]; then + if [[ "$glyph" == *"$1"* ]]; then printf "%s\t%x\t%s\n" "${!glyph}" "'${!glyph}'" "$glyph" fi done