mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 21:01:00 +02:00
Clean up temporary files on exit
Change-Id: I3568c76529fe3f66a5d8b8e5bdaa365f56c589a8
This commit is contained in:
parent
c2093cbb33
commit
aa0cb506bf
@ -14,6 +14,8 @@ TEST_PUB=$(mktemp /tmp/onos-publish-tests.XXXXX) &&
|
|||||||
echo "Created temp file for test artifact publish: $TEST_PUB" ||
|
echo "Created temp file for test artifact publish: $TEST_PUB" ||
|
||||||
{ echo "Failed to create temp file"; exit 1; }
|
{ echo "Failed to create temp file"; exit 1; }
|
||||||
|
|
||||||
|
trap "rm -f $ARTIFACT_PUB $ARTIFACT_PUB.bak $TEST_PUB $TEST_PUB.bak" EXIT
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@ set -e
|
|||||||
onos-buck -V
|
onos-buck -V
|
||||||
|
|
||||||
rm -f /tmp/publish.sh
|
rm -f /tmp/publish.sh
|
||||||
|
trap "rm -f /tmp/publish.sh /tmp/publish.sh.bak" EXIT
|
||||||
|
|
||||||
|
|
||||||
onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
|
onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user