From 21576fe45980fe7b5e3695817fa51de7c637b452 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 4 Dec 2020 21:49:41 +0100 Subject: [PATCH] Properly clean-up package build dirs Signed-off-by: Hidde Beydals --- .github/aur/flux-bin/publish.sh | 4 ++-- .github/aur/flux-go/publish.sh | 4 ++-- .github/aur/flux-scm/publish.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/aur/flux-bin/publish.sh b/.github/aur/flux-bin/publish.sh index aec0ef34..ecdbc976 100755 --- a/.github/aur/flux-bin/publish.sh +++ b/.github/aur/flux-bin/publish.sh @@ -16,8 +16,8 @@ export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChec eval $(ssh-agent -s) ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") -GITDIR=$(mktemp -d aur-$PKGNAME-XXX) -trap "rm -f $GITDIR" EXIT +GITDIR=$(mktemp -d /tmp/aur-$PKGNAME-XXX) +trap "rm -rf $GITDIR" EXIT git clone aur@aur.archlinux.org:$PKGNAME $GITDIR 2>&1 CURRENT_PKGVER=$(cat $GITDIR/.SRCINFO | grep pkgver | awk '{ print $3 }') diff --git a/.github/aur/flux-go/publish.sh b/.github/aur/flux-go/publish.sh index 21402246..6ecf7495 100755 --- a/.github/aur/flux-go/publish.sh +++ b/.github/aur/flux-go/publish.sh @@ -16,8 +16,8 @@ export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChec eval $(ssh-agent -s) ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") -GITDIR=$(mktemp -d aur-$PKGNAME-XXX) -trap "rm -f $GITDIR" EXIT +GITDIR=$(mktemp -d /tmp/aur-$PKGNAME-XXX) +trap "rm -rf $GITDIR" EXIT git clone aur@aur.archlinux.org:$PKGNAME $GITDIR 2>&1 CURRENT_PKGVER=$(cat $GITDIR/.SRCINFO | grep pkgver | awk '{ print $3 }') diff --git a/.github/aur/flux-scm/publish.sh b/.github/aur/flux-scm/publish.sh index 915f88b4..193e353f 100755 --- a/.github/aur/flux-scm/publish.sh +++ b/.github/aur/flux-scm/publish.sh @@ -16,8 +16,8 @@ export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChec eval $(ssh-agent -s) ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") -GITDIR=$(mktemp -d aur-$PKGNAME-XXX) -trap "rm -f $GITDIR" EXIT +GITDIR=$(mktemp -d /tmp/aur-$PKGNAME-XXX) +trap "rm -rf $GITDIR" EXIT git clone aur@aur.archlinux.org:$PKGNAME $GITDIR 2>&1 CURRENT_PKGVER=$(cat $GITDIR/.SRCINFO | grep pkgver | awk '{ print $3 }')