Add automatic AUR repo fetch script
This commit is contained in:
parent
e3eea3bc81
commit
4a60420369
3 changed files with 18 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -18,9 +18,9 @@
|
|||
|
||||
!/.config/
|
||||
!/.zsh/
|
||||
!/AUR/
|
||||
!/Wallpapers/
|
||||
|
||||
!/.gnupg/gpg-agent.conf
|
||||
!/.gnupg/gpg.conf
|
||||
!/.gnupg/sshcontrol
|
||||
|
||||
!/Wallpapers/
|
||||
|
|
4
AUR/.gitignore
vendored
Normal file
4
AUR/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
/*
|
||||
/*/
|
||||
!/.gitignore
|
||||
!/update.sh
|
12
AUR/update.sh
Executable file
12
AUR/update.sh
Executable 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
|
Loading…
Reference in a new issue