Skip to content

Commit

Permalink
Respect name in case of a single directory mount (#750)
Browse files Browse the repository at this point in the history
Fixes #748
  • Loading branch information
fkorotkov authored Mar 11, 2024
1 parent 6bf39e7 commit 89ff5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89ff5f6

Please sign in to comment.