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 | 685a3e7cfd2b6b0d90dfd74bf9ede3fdf646c7c8 (patch) | |
tree | d65e90e361076d61dafceeed0ceea52cde80dd92 /scripts | |
parent | b4b04eb060c74bf54100025595225cbd41ef35fd (diff) |
Delete tarballs so snapshots doesn't get full.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/MakeRelease.job | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/MakeRelease.job b/scripts/MakeRelease.job index a771141b..1a6d8f22 100755 --- a/scripts/MakeRelease.job +++ b/scripts/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 |