Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3de381e1 authored by Sahil Sonar's avatar Sahil Sonar 💬
Browse files

flash: Fix BLOB var splitting

parent 44afdb6f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ then
    for BLOB in $2;
    do
      PARTITION="${BLOB%%:*}"
      IMAGE=$(echo $BLOB | cut -s -d : -f 2)
      IMAGE=$(echo "$BLOB" | cut -s -d : -f 2)

      if [[ "$PARTITION" = "userdata" && "${CLEAN_FLASH}" != "true" ]]
      then
@@ -242,7 +242,7 @@ then
    for BLOB in $2;
    do
      PARTITION="${BLOB%%:*}"
      IMAGE=$(echo $BLOB | cut -s -d : -f 2)
      IMAGE=$(echo "$BLOB" | cut -s -d : -f 2)

      flash_image_ab_or_abort "${1}" "${PARTITION}" "${IMAGES_DIR}/${IMAGE:-$PARTITION.img}"
    done