summaryrefslogtreecommitdiff
path: root/tct/artik_prepare_flash_conf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tct/artik_prepare_flash_conf.sh')
-rwxr-xr-xtct/artik_prepare_flash_conf.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tct/artik_prepare_flash_conf.sh b/tct/artik_prepare_flash_conf.sh
index 2d74a8c..cc58eab 100755
--- a/tct/artik_prepare_flash_conf.sh
+++ b/tct/artik_prepare_flash_conf.sh
@@ -57,6 +57,7 @@ T_DIR="/tmpfs/${SDMUX}"
mkdir -p "${T_DIR}"
IMAGE_UNPACKED="${T_DIR}/unpacked"
+test -d "$IMAGE_UNPACKED" && rm -rf "$IMAGE_UNPACKED"
IMAGE_MOUNTPOINT="${T_DIR}/mounted"
TMP_TAR="/tmpfs/tizen-${SDMUX}.tar"