Merge "Fix syntax error after adding -d"
This commit is contained in:
@@ -285,13 +285,14 @@ if [[ "$INCLUDE_PRODUCT" == true ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$SKIP_VBMETA_REPLACE" == true ]]; then
|
if [[ "$SKIP_VBMETA_REPLACE" == true ]]; then
|
||||||
# Totally skip the vbmeta.img replacement
|
# Totally skip the vbmeta.img replacement
|
||||||
|
echo "Skip vbmeta.img replacement."
|
||||||
else
|
else
|
||||||
# Only override vbmeta if it is already present since fastboot update will try
|
# Only override vbmeta if it is already present since fastboot update will try
|
||||||
# to flash whatever is in the archive.
|
# to flash whatever is in the archive.
|
||||||
if [[ -f "$DEVICE_IMAGES_DIR"/vbmeta.img ]]; then
|
if [[ -f "$DEVICE_IMAGES_DIR"/vbmeta.img ]]; then
|
||||||
readonly VBMETA_IMAGE_PATH="${OVERRIDE_VBMETA_IMAGE_PATH:-"$SYSTEM_IMAGES_DIR"/vbmeta.img}"
|
readonly VBMETA_IMAGE_PATH="${OVERRIDE_VBMETA_IMAGE_PATH:-"$SYSTEM_IMAGES_DIR"/vbmeta.img}"
|
||||||
cp "$VBMETA_IMAGE_PATH" "$DEVICE_IMAGES_DIR"/
|
cp "$VBMETA_IMAGE_PATH" "$DEVICE_IMAGES_DIR"/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user