From a9a28ccf787f49acbef5c0d8c36530ca60fcd123 Mon Sep 17 00:00:00 2001 From: Dave Heller Date: Mon, 16 Apr 2018 01:00:44 -0400 Subject: Cleanup scratch container file If no --out is provide we use a scratch file for output container. But there is no reason to keep this; if the user wants a persistent file he can specify --out. Signed-off-by: Dave Heller --- crtSignedContainer.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crtSignedContainer.sh') diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh index 4614000..31b96fb 100755 --- a/crtSignedContainer.sh +++ b/crtSignedContainer.sh @@ -415,6 +415,9 @@ fi if [ -z "$OUTPUT" ] || [ "$OUTPUT" == __none ] then OUTPUT="$SB_SCRATCH_DIR/$(to_lower "$buildID").scratch.out.img" + OUTPUT_SCRATCH=true +else + OUTPUT_SCRATCH=false fi # @@ -845,4 +848,8 @@ if [ $SB_KEEP_CACHE == false ]; then rm -rf "$TOPDIR" fi +if [ $OUTPUT_SCRATCH == true ]; then + rm "$OUTPUT" +fi + exit $RC -- cgit v1.2.1