emacs-overlay/update
2023-12-24 01:09:28 +13:00

14 lines
223 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" -- "$repo"