Index: src/scripts/archive_build.sh |
diff --git a/src/scripts/archive_build.sh b/src/scripts/archive_build.sh |
index bf0521c1bae17a8e31647547fd5633d5bd825163..95bdbcca74bcb4b336a7e5bf787ba07225f25d58 100755 |
--- a/src/scripts/archive_build.sh |
+++ b/src/scripts/archive_build.sh |
@@ -149,8 +149,10 @@ then |
"--factory_install" |
fi |
-# Remove the developer build. |
-rm -f ${SRC_IMAGE} |
+# Remove the developer build if test image is also built. |
+if [ $FLAGS_test_mod -eq $FLAGS_TRUE ] ; then |
+ rm -f ${SRC_IMAGE} |
+fi |
# Zip the build |
echo "Compressing and archiving build..." |