From 89ff5f6b652ea7837d14780631f2532afdb183a6 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Mon, 11 Mar 2024 11:01:06 -0400 Subject: [PATCH] Respect `name` in case of a single directory mount (#750) Fixes #748 --- Sources/tart/Commands/Run.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index 9f77831..523d0f9 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -477,7 +477,7 @@ struct Run: AsyncParsableCommand { allNamedShares = false } } - if directoryShares.count == 1 { + if directoryShares.count == 1 && directoryShares.first!.name == nil { let directoryShare = directoryShares.first! let singleDirectoryShare = VZSingleDirectoryShare(directory: try directoryShare.createConfiguration()) sharingDevice.share = singleDirectoryShare