aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapkg-reposync3
1 files changed, 2 insertions, 1 deletions
diff --git a/apkg-reposync b/apkg-reposync
index 11b542d..3507486 100755
--- a/apkg-reposync
+++ b/apkg-reposync
@@ -5,6 +5,7 @@ temp_repos_file=$(mktemp)
die() {
[ "$1" ] && echo "error: $1"
+ rm -f "$temp_repos_file"
exit 1
}
@@ -60,4 +61,4 @@ sync_or_skip() {
source_and_sanity_checks
sync_official
sync_or_skip
-if sync_or_skip; then echo "[~> Repo(s) succesfully synced!]"; fi
+if sync_or_skip; then echo "[~> Repo(s) succesfully synced!]" && rm -f "temp_repos_file"; fi