Skip to content

Commit

Permalink
create_image.sh coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmnmk committed Mar 21, 2021
1 parent 07ad2e7 commit 060c376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
size=$((free/2))
fi
size="${size}k"
part_type=ntfs
part_type="ntfs"
fi

if [ "$part_type" != "ntfs" ] && [ "$part_type" != "fat32" ]; then
Expand All @@ -47,7 +47,7 @@ echo "Creating $size image..."
fallocate -l "$size" "$FILE"
dev="$(losetup -fL --show "$FILE")"
parted "$dev" mklabel msdos
parted "$dev" mkpart p $part_type 1M 100%
parted "$dev" mkpart p "$part_type" 1M 100%

if [ "$part_type" = "ntfs" ]; then
mkfs.ntfs -fL RPiHDD "${dev}p1"
Expand Down

0 comments on commit 060c376

Please sign in to comment.