commit | e1c02f40a64f88a10bafe2db3ecae6119d241be4 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Fri Dec 02 12:49:55 2016 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Dec 02 12:50:52 2016 -0800 |
tree | 5f0f2dcdb86d850cc0ffaff8a6eeaea8d0b03183 | |
parent | cedacd4b489ae5170c82b36eed6fd915ebc8dc1e [diff] [blame] |
Remove buck.zip from cache on SHA failure Change-Id: I145c343052729f6a1f1f55cc139506c30113e326
diff --git a/tools/build/onos-buck b/tools/build/onos-buck index 1a5fd3e..81d3e70 100755 --- a/tools/build/onos-buck +++ b/tools/build/onos-buck
@@ -27,7 +27,7 @@ SHA=$(shasum cache/$BUCK_FILE | cut -d' ' -f1) [ "$SHA" != "$BUCK_SHA" ] && echo "ERROR: Downloaded SHA ($SHA) does not match expected SHA ($BUCK_SHA)" && - exit 1 + rm -f cache/$BUCK_FILE && exit 1 else echo "SHA cannot be verified" fi