summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-08 15:27:52 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:20 +0200
commit0530fa5be488e872f66fc0660fc09e6964fdd5cd (patch)
tree2067a5e82a45879da68e8d4f3eabbf5d6482c9f5 /archPackagesUpdate
parent8c2b008bd3c06eb7953f2144f418bc03c101a964 (diff)
downloadarchlinuxewe-0530fa5be488e872f66fc0660fc09e6964fdd5cd.tar.xz
archPackagesUpdate loescht tmpDir nun noch haeufiger (immer?)
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate12
1 files changed, 10 insertions, 2 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 2b402faae..9e70b243c 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -170,7 +170,11 @@ then
makepkg -fcsr --noconfirm
err[${i}]=$?
fi
- ${abortOnMakepkgError} && [ ${err[${i}]} -ne 0 ] && exit ${err[${i}]}
+ if ${abortOnMakepkgError} && [ ${err[${i}]} -ne 0 ]
+ then
+ rm -rf "${tmpDir}"
+ exit ${err[${i}]}
+ fi
[ ${err[${i}]} -gt ${maxErr} ] && maxErr=${err[${i}]}
# upload packages
@@ -240,7 +244,11 @@ then
'
fi
- [ ${maxErr} -ne 0 ] && exit ${maxErr}
+ if [ ${maxErr} -ne 0 ]
+ then
+ rm -rf "${tmpDir}"
+ exit ${maxErr}
+ fi
else