From 99d4b8c73237d6730bfd39fc8baee02c2b790a96 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 14 Jan 2023 16:21:14 +0100 Subject: [PATCH] dev --- bin/pkgbuilder | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/pkgbuilder b/bin/pkgbuilder index 4648311..2f725f5 100755 --- a/bin/pkgbuilder +++ b/bin/pkgbuilder @@ -401,14 +401,15 @@ pkgPushToAUR() { # $1=PKGNAME chown -R pkgbuilder "${TMPDIR}" # shellcheck disable=SC2024 sudo -u pkgbuilder makepkg --printsrcinfo > .SRCINFO + chown -R root "${TMPDIR}" git add -A git commit -a -m "Version ${PKGVERSION}" - #if ! git push --config core.sshCommand="ssh -i ${AURSSHKEY}"; then - # rm -rf "${TMPDIR}" - # return 1 - #fi - #rm -rf "${TMPDIR}" + if ! git push; then + rm -rf "${TMPDIR}" + return 1 + fi + rm -rf "${TMPDIR}" } CNFFILE="/etc/pkgbuilder/config"