#!/bin/sh
set -eu

sxbm_orig "$@"
cd ~/.local/share/sxbm
git add bookmarks
if ! git diff --cached --quiet; then
    git commit -q -m "Auto-update bookmarks on $(date)"
    git push -q
fi
