From 1e9aa9b8d72b0ead093295fb3305180abf1fe720 Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 3 Jun 2021 15:10:35 +0200 Subject: [PATCH] added aursync --- bin/aursync | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/aursync diff --git a/bin/aursync b/bin/aursync new file mode 100755 index 0000000..519d8a1 --- /dev/null +++ b/bin/aursync @@ -0,0 +1,13 @@ +#!/bin/bash +cd ~/custom-repo/x64_86 +repo-add -q custom.db.tar.gz *.pkg.* +if [[ "$#" -eq 1 ]] +then + aur sync --repo custom --root "$(pwd)" --no-view "$1" > /dev/null +fi +aur sync --repo custom --root "$(pwd)" --no-view -u > /dev/null +mv custom.db.tar.gz custom.db +mv custom.files.tar.gz custom.files +git add . +git commit -a -q -m "$(date +"%F %T")" +git push -q