diff --git a/bin/scripts/cheatsheet.sh b/bin/scripts/cheatsheet.sh index fddf2da55..ab3968d82 100755 --- a/bin/scripts/cheatsheet.sh +++ b/bin/scripts/cheatsheet.sh @@ -13,7 +13,7 @@ source "${sd}/lib/i_all.sh" # Search the key on the declared variables for glyph in ${!i_*}; do - if [[ "$glyph" == *"$1"* ]]; then - printf "%s\t%x\t%s\n" "${!glyph}" "'${!glyph}'" "$glyph" + if [[ "${glyph}" == *"${1}"* ]]; then + printf "%s\t%x\t%s\n" "${!glyph}" "'${!glyph}'" "${glyph}" fi done