summaryrefslogtreecommitdiff
path: root/tools/editgame.sh
blob: 2638f454837bc496186ba7cbef1dd8d7b336e2b6 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
if [ -n "$1" -a -n "$VISUAL" ]
then
	sqlite3 db "update game_state set state=edit(state) where game_id = $1"
else
	echo "usage: bash tools/editgame.sh GAME"
	echo "note: \$VISUAL must be set to your preferred editor"
fi