From e989b9197909cdf40ccc000357efdc3e54294160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 24 Sep 2024 18:58:57 +0200 Subject: [PATCH] Update AUR updater script --- check-aur-updates.sh | 3 --- maintenance.sh | 2 +- update-aur-pkgs.sh | 9 +++++++++ 3 files changed, 10 insertions(+), 4 deletions(-) delete mode 100755 check-aur-updates.sh create mode 100755 update-aur-pkgs.sh diff --git a/check-aur-updates.sh b/check-aur-updates.sh deleted file mode 100755 index 4fa0f73..0000000 --- a/check-aur-updates.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -git submodule update --remote pkgbuilds/* diff --git a/maintenance.sh b/maintenance.sh index d9865cd..903c41f 100755 --- a/maintenance.sh +++ b/maintenance.sh @@ -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 \ diff --git a/update-aur-pkgs.sh b/update-aur-pkgs.sh new file mode 100755 index 0000000..8a7dbef --- /dev/null +++ b/update-aur-pkgs.sh @@ -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