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