summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/parted-usb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parted-usb.sh b/src/parted-usb.sh
index 1a7ec7a..3e4778f 100755
--- a/src/parted-usb.sh
+++ b/src/parted-usb.sh
@@ -139,7 +139,7 @@ release_target_block_devices()
139{ 139{
140 ( 140 (
141 set +e 141 set +e
142 [ -z "$mnt" ] || ! mountpoint "$mnt" || umount "$mnt" 142 [ -z "$mnt" ] || ! mountpoint -q "$mnt" || umount "$mnt"
143 case "$dev" in 143 case "$dev" in
144 /dev/loop*) 144 /dev/loop*)
145 kpartx -d "$dev" 145 kpartx -d "$dev"
@@ -173,7 +173,7 @@ add_grub_cfg()
173individualize() 173individualize()
174{ 174{
175 mkdir -p "$mnt" 175 mkdir -p "$mnt"
176 mountpoint "$mnt" || mount "$part"2 "$mnt" 176 mountpoint -q "$mnt" || mount "$part"3 "$mnt"
177 add_keys 177 add_keys
178 add_initrd "$samizdat_linux_dir"/ "${version_suffix}" 178 add_initrd "$samizdat_linux_dir"/ "${version_suffix}"
179 add_grub_cfg 179 add_grub_cfg