blob: f45be78c6dc397ba5c6f5e5b58995cfd3f03b75a (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
if [ -n "$1" ]
then
sqlite3 db "select json_remove(json_remove(state, '$.undo'), '$.log') from game_state where game_id = $1"
else
echo "usage: bash tools/showgame.sh GAME"
fi
|