Skip to content

Commit

Permalink
Update create_image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rzrbld committed Nov 13, 2022
1 parent 91d8a05 commit 263e255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ dev="$(losetup -fL --show "$FILE")"
parted "$dev" mklabel "$sel_part_type"
parted "$dev" mkpart p "$fs_type" "$part_offset" 100%

if [ "$part_type" = "ntfs" ]; then
if [ "$sel_fs_type" = "ntfs" ]; then
mkfs.ntfs -fL "$part_label" "${dev}p1"
elif [ "$part_type" = "fat32" ]; then
elif [ "$sel_fs_type" = "fat32" ]; then
mkfs.vfat "${dev}p1"
fatlabel "${dev}p1" "$part_label"
elif [ "$part_type" = "exfat"]; then
elif [ "$sel_fs_type" = "exfat"]; then
mkfs.exfat -n "$part_label" "${dev}p1"
else
exit 1
Expand Down

0 comments on commit 263e255

Please sign in to comment.