From 98e5dc8c7e98b8dd5f98d582e5e9694d0c21ecea Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Thu, 17 Oct 2019 21:02:32 +0200 Subject: [PATCH] Force unzip when folder already exists --- flash-it.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash-it.sh b/flash-it.sh index f70628b..75972c6 100755 --- a/flash-it.sh +++ b/flash-it.sh @@ -56,13 +56,13 @@ sudo mkfs.ext4 -F -L data "${DEVICE_NODE}2" # 2nd partition = data # Flashing u-boot echo -e "\e[1mFlashing U-boot...\e[0m" -unzip "${UBOOT_JOB}.zip" +unzip -f "${UBOOT_JOB}.zip" sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 sync # Flashing rootFS echo -e "\e[1mFlashing rootFS...\e[0m" -unzip "${ROOTFS_JOB}.zip" +unzip -f "${ROOTFS_JOB}.zip" TEMP=`ls $ROOTFS_DIR/*/*.tar.bz2` echo "$TEMP" mkdir "$MOUNT_DATA"