Added motd handling (debian specific) and check if chezmoi managed files

have changes.
This commit is contained in:
Stefan Gaiselmann 2021-08-02 11:55:11 +02:00
parent cf24e2f956
commit 1b30b668ed
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
if [ -d /etc/update-motd.d ]; then
for f in /etc/update-motd.d/* ; do
. "$f"
done
fi

View File

@ -0,0 +1,9 @@
if chezmoi >/dev/null
then
if [[ $(chezmoi diff | wc -l) != "0" ]]; then
echo
echo "== chezmoi files have changed =="
echo
chezmoi diff
fi
fi