From ac93910a17ad25b907ca721885e1a927394038cb Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Thu, 10 Mar 2022 16:51:22 +0800 Subject: [PATCH] Delete old embedded_img directory before copying. --- script/tools/copy_embedded_img.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tools/copy_embedded_img.sh b/script/tools/copy_embedded_img.sh index 6a60243..2b90d18 100644 --- a/script/tools/copy_embedded_img.sh +++ b/script/tools/copy_embedded_img.sh @@ -16,12 +16,12 @@ cd ${latest_iso_dir} if [ ! -d embedded_img ];then mkdir embedded_img else - echo "[INFO]: This ${latest_iso_dir} already have an embedded_img directory." + rm -rf embedded_img + echo "[INFO]: old embedded_img directory will deleted." fi ") if [ -n "$res" ];then echo $res - exit 0 fi mkdir tmpdir expect <<-END1 -- Gitee