Add automatic AUR repo fetch script

This commit is contained in:
David Holland 2020-01-23 20:03:40 +01:00
parent e3eea3bc81
commit 4a60420369
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9
3 changed files with 18 additions and 2 deletions

4
.gitignore vendored
View file

@ -18,9 +18,9 @@
!/.config/
!/.zsh/
!/AUR/
!/Wallpapers/
!/.gnupg/gpg-agent.conf
!/.gnupg/gpg.conf
!/.gnupg/sshcontrol
!/Wallpapers/

4
AUR/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
/*
/*/
!/.gitignore
!/update.sh

12
AUR/update.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
for dir in *; do
if [ -d "${dir}" ]; then
cd ${dir}
git fetch --all
BEHIND=$(git rev-list HEAD...origin/master --count)
if [[ ! ${dir} -eq 0 ]]; then
echo "$(pwd) is ${BEHIND} commits behind"
fi
cd ..
fi
done