Compare commits

...

3 Commits

Author SHA1 Message Date
Icedream 84348bf9eb
Tweak messages in update script. 2018-02-18 23:41:24 +01:00
Icedream 06f2f926d9
Prune after pulling updates. 2018-02-18 23:41:14 +01:00
Icedream 689a7bdb70
Set proper permissions for GNUPGHOME. 2018-02-18 23:41:07 +01:00
1 changed files with 4 additions and 2 deletions

View File

@ -9,17 +9,19 @@ fi
cd ~/.local/profile-git cd ~/.local/profile-git
echo "Fetching updates for profile..." echo "Fetching updates for profile..."
git fetch git fetch -p
# Synchronizing valid GPG keys # Synchronizing valid GPG keys
echo "Preparing for update verification..."
export GNUPGHOME="$HOME/.local/profile-data/gnupg" export GNUPGHOME="$HOME/.local/profile-data/gnupg"
mkdir -p "${GNUPGHOME}" mkdir -p "${GNUPGHOME}"
chmod 700 "${GNUPGHOME}"
gpg --fingerprint gpg --fingerprint
gpg --recv-keys \ gpg --recv-keys \
B5108C5A158A6608AD3361DA1573F6D8EFE4D0CF \ B5108C5A158A6608AD3361DA1573F6D8EFE4D0CF \
04ADEF85EA6AEC6F75941E84468BBEEBB9EC6AEA 04ADEF85EA6AEC6F75941E84468BBEEBB9EC6AEA
echo "Validating updates..." echo "Verifying updates..."
git rev-list --format=oneline origin..HEAD | while IFS= read -r line; do git rev-list --format=oneline origin..HEAD | while IFS= read -r line; do
sha="$(echo "$line" | awk '{print $1}')" sha="$(echo "$line" | awk '{print $1}')"
title="$(echo "$line" | cut -f 1 -d ' ' --complement)" title="$(echo "$line" | cut -f 1 -d ' ' --complement)"