Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jul 30, 2024
1 parent ba11de6 commit 6365206
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/uPart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,4 +42,4 @@ add_fat32_partition() {
}

# Call the function to add FAT32 partition
add_fat32_partition
add_fat32_partition

0 comments on commit 6365206

Please sign in to comment.