summaryrefslogtreecommitdiff
path: root/tools/writegame.sh
blob: ea0f599968116b7fd5319a04477495cc0d22ad4b (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