diff --git a/Ventoy/CloneToDisk.sh b/Ventoy/CloneToDisk.sh index a561a09..0a4149c 100755 --- a/Ventoy/CloneToDisk.sh +++ b/Ventoy/CloneToDisk.sh @@ -10,9 +10,9 @@ cleanup() { for i in "${mount_points[@]}"; do umount -lf "/mnt/debian$i" || true; done - umount -lf /mnt/boot/efi 2>/dev/null || true - umount -lf /mnt/boot 2>/dev/null || true - umount -lf /mnt 2>/dev/null || true + umount -lf /mnt/boot/efi || true + umount -lf /mnt/boot || true + umount -lf /mnt || true } trap cleanup EXIT