dotfiles/.local/bin/stoneshard

15 lines
305 B
Bash
Executable File

#!/bin/sh
SAVE_DIR="$HOME/.config/StoneShard"
# Pull latest save before starting
yadm pull --rebase
# Start the game
"/home/gil/GOG Games/Stoneshard/start.sh"
# Commit and push after the game closes
yadm add -A $SAVE_DIR
yadm commit -m "Stoneshard save $(date '+%Y-%m-%d %H:%M:%S')" || true
yadm push