Remove redundant mkdirs from tct/odroid_prepare_flash_conf.sh
Change-Id: I6da51ef4b7e82debf66eea88570b7e997bf7855a
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
switch2testserver "${SDMUX}"
-mkdir "${IMAGE_UNPACKED}"
unpack_image "${BOOT_IMAGE}" "${IMAGE}" "${IMAGE_UNPACKED}"
-mkdir "${IMAGE_MOUNTPOINT}"
mount_image "${IMAGE_UNPACKED}/rootfs.img" "${IMAGE_MOUNTPOINT}"
install_iserial "${SDMUX}" "${IMAGE_MOUNTPOINT}"
unmount_image "${IMAGE_MOUNTPOINT}"
mount_image() {
IMAGE="$1"
MOUNTPOINT="$2"
+
test -n "${IMAGE}" || die "Missing argument: image"
test -n "${MOUNTPOINT}" || die "Missing argument: mountpoint"
+ test -d "${MOUNTPOINT}" || mkdir -p "${MOUNTPOINT}"
sudo mount -o loop "${IMAGE}" "${MOUNTPOINT}"
}