From 65878aa07452b45c3f17c3ab15508400edd46476 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 18 Sep 2024 07:56:39 +0200 Subject: Some shellcheck --- utils/genmoveswitch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/genmoveswitch.sh') diff --git a/utils/genmoveswitch.sh b/utils/genmoveswitch.sh index 4fe057c..3b2a74b 100755 --- a/utils/genmoveswitch.sh +++ b/utils/genmoveswitch.sh @@ -2,7 +2,7 @@ printf '\tswitch (m) {\n' for f in cubes/move_??_*.txt; do - t="$(echo $f | sed 's/.*_// ; s/\.txt//')" + t="$(echo "$f" | sed 's/.*_// ; s/\.txt//')" printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" done printf '\t}\n' -- cgit v1.3