diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2015-03-04 09:07:27 +0000 |
---|---|---|
committer | Rob Savoye <rob.savoye@linaro.org> | 2015-03-04 09:07:27 +0000 |
commit | 18ad55150b8999ab03561fc6c45fe827844fee69 (patch) | |
tree | 5e92687ee669a18ff3b4aa97d1758f8a989d7fba /MakeRelease.job | |
parent | 40798798bf13c7cd270a6cbbcb5725765becd488 (diff) |
Delete tarballs so snapshots doesn't get full.
Diffstat (limited to 'MakeRelease.job')
-rwxr-xr-x | MakeRelease.job | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MakeRelease.job b/MakeRelease.job index a771141b..1a6d8f22 100755 --- a/MakeRelease.job +++ b/MakeRelease.job @@ -126,8 +126,12 @@ if test x"${tarsrc}" = x"yes"; then tarballs="`find ${user_snapshots} -name \*${release}\*.{xz,asc}`" if test x"${tarballs}" != x; then scp ${tarballs} ${fileserver}:${snaps}/ - # make a local copy that other jobs can access - cp ${tarballs} ${shared}/snapshots/ + if test $? -gt 0; then + echo "ERROR: Couldn't copy files to ${fileserver}!" + exit 1 + else + rm -f ${tarballs} + fi else echo "ERROR: No source tarballs were found!" fi |