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/genmoveswitch.sh | |
| parent | e0f9f9929d80d2c21ae1996b437d9209d498956b (diff) | |
| download | nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.tar.gz nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.zip | |
Some shellcheck
Diffstat (limited to 'utils/genmoveswitch.sh')
| -rwxr-xr-x | utils/genmoveswitch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
| 2 | 2 | ||
| 3 | printf '\tswitch (m) {\n' | 3 | printf '\tswitch (m) {\n' |
| 4 | for f in cubes/move_??_*.txt; do | 4 | for f in cubes/move_??_*.txt; do |
| 5 | t="$(echo $f | sed 's/.*_// ; s/\.txt//')" | 5 | t="$(echo "$f" | sed 's/.*_// ; s/\.txt//')" |
| 6 | printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" | 6 | printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" |
| 7 | done | 7 | done |
| 8 | printf '\t}\n' | 8 | printf '\t}\n' |
