aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcreate_image.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/create_image.sh b/create_image.sh
index 77664f1..cc4e366 100755
--- a/create_image.sh
+++ b/create_image.sh
@@ -73,6 +73,7 @@ cleanup_mounts() {
handle_error() {
echo "$1"
cd ${IMAGE_WORK_PATH}
+ mv ${LOG_FILE} ${IMAGES_OUTPUT_PATH}/${BUILD_ID}.log || handle_error "Error moving log file"
cleanup_mounts && rm -rf ${IMAGE_WORK_PATH}
exit 1
}