aboutsummaryrefslogtreecommitdiff
path: root/utils/genmoveswitch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/genmoveswitch.sh')
-rwxr-xr-xutils/genmoveswitch.sh2
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
3printf '\tswitch (m) {\n' 3printf '\tswitch (m) {\n'
4for f in cubes/move_??_*.txt; do 4for 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"
7done 7done
8printf '\t}\n' 8printf '\t}\n'

Generated with cgit - Back to sebastiano.tronto.net