summaryrefslogtreecommitdiffstats
path: root/crtSignedContainer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'crtSignedContainer.sh')
-rwxr-xr-xcrtSignedContainer.sh7
1 files changed, 7 insertions, 0 deletions
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
OpenPOWER on IntegriCloud