From: Antoine Beaupré <anar...@koumbit.org> --- logout.d/30git-commit | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 logout.d/30git-commit
diff --git a/logout.d/30git-commit b/logout.d/30git-commit new file mode 100644 index 0000000..a995f9e --- /dev/null +++ b/logout.d/30git-commit @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +if git status --porcelain | grep .; then + echo "there are uncommited changes in /etc: " + printf "want to commit them? [y/N] " + read ans + case $ans in + y|Y|yes|YES) + echo "Proceeding..." + git add -p + git commit + ;; + *) + echo "Aborting logout commit" + exit 1 + ;; + esac +fi -- 1.7.10.4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org