Show diff message

This commit is contained in:
Sage Vaillancourt 2024-02-19 00:47:38 -05:00
parent 2b0836d477
commit 99e817e42c
1 changed files with 6 additions and 1 deletions

View File

@ -117,7 +117,12 @@ function getdot {
rm /tmp/dconf-dump
scp -P 11275 'sage@sagev.space:~/dconf-dump' /tmp/dconf-dump
dconf-dump > /tmp/current-dconf-dump
git --no-pager diff --no-index /tmp/dconf-dump /tmp/current-dconf-dump
if ! git --no-pager diff --no-index /tmp/current-dconf-dump /tmp/dconf-dump &> /dev/null; then
echo
echo "Incoming conf changes:"
echo
git --no-pager diff --no-index /tmp/current-dconf-dump /tmp/dconf-dump
fi
dconf load / < /tmp/dconf-dump || return 1
else
echo "An alias for scpace has not been defined on this device!"