summaryrefslogtreecommitdiff
path: root/tools/writegame.sh
blob: 82cff236dcdcb52463c1474800e1e4a37d17d355 (plain)
1
2
3
4
5
6
7
#!/bin/bash
if [ -n "$1" -a -f "$2" ]
then
	sqlite3 db "update games set state=readfile('$2') where game_id = $1"
else
	echo "usage: bash tools/writegame.sh GAME state.json"
fi