From 060c376bd4bbff6b8fdb5c82b7daa4328b6e9ee7 Mon Sep 17 00:00:00 2001 From: Adam Bambuch Date: Sun, 21 Mar 2021 23:02:04 +0100 Subject: [PATCH] create_image.sh coding style --- create_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_image.sh b/create_image.sh index ee93ddb..52f5dcc 100755 --- a/create_image.sh +++ b/create_image.sh @@ -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 @@ -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"