]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix VentoyPlugson issue when ISO partition has a drive label with a space. (#1901)
authorlongpanda <admin@ventoy.net>
Sun, 9 Oct 2022 01:24:16 +0000 (09:24 +0800)
committerlongpanda <admin@ventoy.net>
Sun, 9 Oct 2022 01:24:16 +0000 (09:24 +0800)
INSTALL/VentoyPlugson.sh

index 5ded1863842dc1e68333e8817def5af6c9a403a9..5394a36f5d944306bb4b367012a15d5ea358d8f9 100644 (file)
@@ -163,7 +163,7 @@ fi
 PART1=$(get_disk_part_name $DISK 1)
 
 if grep -q "^$PART1 " /proc/mounts; then
 PART1=$(get_disk_part_name $DISK 1)
 
 if grep -q "^$PART1 " /proc/mounts; then
-    mtpnt=$(grep "^$PART1 " /proc/mounts | awk '{print $2}')
+    mtpnt=$(grep "^$PART1 " /proc/mounts | awk '{print $2}' | sed 's/\\040/ /g')
     fstype=$(grep "^$PART1 " /proc/mounts | awk '{print $3}')
     
     if echo $fstype | grep -q -i 'fuse'; then
     fstype=$(grep "^$PART1 " /proc/mounts | awk '{print $3}')
     
     if echo $fstype | grep -q -i 'fuse'; then