Update AUR updater script

This commit is contained in:
2024-09-24 18:58:57 +02:00
parent 5cc03d302e
commit e989b91979
3 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash
git submodule update --remote pkgbuilds/*

View File

@@ -5,7 +5,7 @@ set -o errexit
sudo pacman -Syu
./check-aur-updates.sh
./update-aur-pkgs.sh
ANSIBLE_DISPLAY_OK_HOSTS=false \
ANSIBLE_DISPLAY_SKIPPED_HOSTS=false \

9
update-aur-pkgs.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
for pkg in pkgbuilds/* ; do
git submodule update --remote "${pkg}"
if git status --porcelain "${pkg}" | grep -q . ; then
git add "${pkg}"
git commit -m "aur: Update $(basename "${pkg}")"
fi
done