diff options
author | Erich Eckner <git@eckner.net> | 2016-04-08 15:27:52 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-11 11:29:20 +0200 |
commit | 0530fa5be488e872f66fc0660fc09e6964fdd5cd (patch) | |
tree | 2067a5e82a45879da68e8d4f3eabbf5d6482c9f5 /archPackagesUpdate | |
parent | 8c2b008bd3c06eb7953f2144f418bc03c101a964 (diff) | |
download | archlinuxewe-0530fa5be488e872f66fc0660fc09e6964fdd5cd.tar.xz |
archPackagesUpdate loescht tmpDir nun noch haeufiger (immer?)
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 12 |
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 |