diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 07:56:39 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 07:56:39 +0200 |
| commit | 65878aa07452b45c3f17c3ab15508400edd46476 (patch) | |
| tree | 7a49e17ecd40552d9c090fb85db9d2fa6bcc63a0 /utils/genmovecode.sh | |
| parent | e0f9f9929d80d2c21ae1996b437d9209d498956b (diff) | |
| download | nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.tar.gz nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.zip | |
Some shellcheck
Diffstat (limited to '')
| -rwxr-xr-x | utils/genmovecode.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 4 | 4 | ||
| 5 | gen() { | 5 | gen() { |
| 6 | for f in cubes/move_??_*.txt; do | 6 | for f in cubes/move_??_*.txt; do |
| 7 | move="$(echo $f | sed 's/.*_// ; s/\.txt//')" | 7 | move="$(echo "$f" | sed 's/.*_// ; s/\.txt//')" |
| 8 | printf '#define _move_cube_%s fastcube( \\\n ' "$move" | 8 | printf '#define _move_cube_%s fastcube( \\\n ' "$move" |
| 9 | ./h48_to_lst <"$f" | 9 | ./h48_to_lst <"$f" |
| 10 | printf ')\n' | 10 | printf ')\n' |
