commit | aa0cb506bf2ae620b47c14fd3a985d89ca83c8d0 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Thu Jan 12 09:57:32 2017 -0800 |
committer | Thomas Vachuska <tom@onlab.us> | Thu Jan 12 19:44:31 2017 +0000 |
tree | 47bf9995bd048eadc1d64186f5bdab618735332a | |
parent | c2093cbb33504395cb628597631d439aab59503f [diff] |
Clean up temporary files on exit Change-Id: I3568c76529fe3f66a5d8b8e5bdaa365f56c589a8
diff --git a/tools/build/onos-buck-publish b/tools/build/onos-buck-publish index d7d0202..f51de05 100755 --- a/tools/build/onos-buck-publish +++ b/tools/build/onos-buck-publish
@@ -14,6 +14,8 @@ echo "Created temp file for test artifact publish: $TEST_PUB" || { 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 -x
diff --git a/tools/build/onos-buck-publish-local b/tools/build/onos-buck-publish-local index 8bebeaa..d47f72d 100755 --- a/tools/build/onos-buck-publish-local +++ b/tools/build/onos-buck-publish-local
@@ -4,6 +4,8 @@ onos-buck -V 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