summaryrefslogtreecommitdiff
path: root/tools/editgame.sh
blob: 7f21fcbf56327eaef97bce802da93b2fdaa0c8a4 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
if [ -n "$1" -a -n "$VISUAL" ]
then
	sqlite3 db "update games 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