Merge "Fix syntax error after adding -d" am: e27e2c5448

Original change: https://android-review.googlesource.com/c/platform/development/+/1376576

Change-Id: I0a168b4c1fa26c4e8b9f0375a5471fdd5704afb1
This commit is contained in:
Treehugger Robot
2020-07-29 20:38:48 +00:00
committed by Automerger Merge Worker

View File

@@ -285,13 +285,14 @@ if [[ "$INCLUDE_PRODUCT" == true ]]; then
fi
if [[ "$SKIP_VBMETA_REPLACE" == true ]]; then
# Totally skip the vbmeta.img replacement
# Totally skip the vbmeta.img replacement
echo "Skip vbmeta.img replacement."
else
# Only override vbmeta if it is already present since fastboot update will try
# to flash whatever is in the archive.
if [[ -f "$DEVICE_IMAGES_DIR"/vbmeta.img ]]; then
readonly VBMETA_IMAGE_PATH="${OVERRIDE_VBMETA_IMAGE_PATH:-"$SYSTEM_IMAGES_DIR"/vbmeta.img}"
cp "$VBMETA_IMAGE_PATH" "$DEVICE_IMAGES_DIR"/
readonly VBMETA_IMAGE_PATH="${OVERRIDE_VBMETA_IMAGE_PATH:-"$SYSTEM_IMAGES_DIR"/vbmeta.img}"
cp "$VBMETA_IMAGE_PATH" "$DEVICE_IMAGES_DIR"/
fi
fi