From 263fc8dad1517fb2185bbb5f6ccef951f5f7afca Mon Sep 17 00:00:00 2001 From: Severin Neumann Date: Mon, 4 Dec 2023 10:24:53 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Patrice Chalin --- scripts/cspell-ignore-scanner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cspell-ignore-scanner b/scripts/cspell-ignore-scanner index bfc8da90db39..04c28f0cfa36 100755 --- a/scripts/cspell-ignore-scanner +++ b/scripts/cspell-ignore-scanner @@ -4,5 +4,5 @@ # This helps to add new words to the .vscode/cspell.json file # -DIRECTOR=${1:-.} +DIRECTORY=${1:-.} grep "cSpell:ignore" content layouts data -Ri ${DIRECTORY} | awk -F"cSpell:ignore" '{ print $2; }' | sed 's/^://; s/^[ \t]*//; s/[*\/}>-]//g'| tr ' ' '\n' | tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -n