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/genmovecode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/genmovecode.sh') diff --git a/utils/genmovecode.sh b/utils/genmovecode.sh index ddde0f7..cf13441 100755 --- a/utils/genmovecode.sh +++ b/utils/genmovecode.sh @@ -4,7 +4,7 @@ cc -DDEBUG h48_to_lst.c ../src/nissy.c -o h48_to_lst gen() { for f in cubes/move_??_*.txt; do - move="$(echo $f | sed 's/.*_// ; s/\.txt//')" + move="$(echo "$f" | sed 's/.*_// ; s/\.txt//')" printf '#define _move_cube_%s fastcube( \\\n ' "$move" ./h48_to_lst <"$f" printf ')\n' -- cgit v1.3