emacs-overlay/update
2023-12-24 01:19:10 +13:00

14 lines
229 B
Text
Executable file

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p bash git
set -euo pipefail
repo="$1"
"repos/$repo/update"
if git diff --exit-code "repos/$repo" > /dev/null; then
exit 0
fi
git commit -m "Updated $repo" -- "repos/$repo"