diff --git a/scripts/uPart.sh b/scripts/uPart.sh index 35a0236c..ef9fc699 100644 --- a/scripts/uPart.sh +++ b/scripts/uPart.sh @@ -17,8 +17,8 @@ add_fat32_partition() { cat fat.img >> "${PREV_WORK_DIR}"/*.img rm -f fat.img if [[ "${OS}" == "ubuntu-x86-minimal" ]] || [[ "${OS}" == "ubuntu-x86" ]]; then - echo "x86 doesn't get a video partition" - else if [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then + echo "x86 doesn't get a video partition" + elif [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then sgdisk -e "${PREV_WORK_DIR}"/*.img echo -e "n\n4\n\n\n\n0C00\nw\ny" | sudo gdisk "${PREV_WORK_DIR}"/*.img sudo parted "${PREV_WORK_DIR}"/*.img set 4 msftdata on @@ -42,4 +42,4 @@ add_fat32_partition() { } # Call the function to add FAT32 partition -add_fat32_partition \ No newline at end of file +add_fat32_partition