mirror of https://github.com/cirruslabs/tart.git
tart create --from-ipsw: expand tilde (~) in path (#688)
This commit is contained in:
parent
537f0ae5db
commit
1d8bfafde5
|
|
@ -40,7 +40,7 @@ struct Create: AsyncParsableCommand {
|
|||
} else if fromIPSW.starts(with: "http://") || fromIPSW.starts(with: "https://") {
|
||||
ipswURL = URL(string: fromIPSW)!
|
||||
} else {
|
||||
ipswURL = URL(fileURLWithPath: fromIPSW)
|
||||
ipswURL = URL(fileURLWithPath: NSString(string: fromIPSW).expandingTildeInPath)
|
||||
}
|
||||
|
||||
_ = try await VM(vmDir: tmpVMDir, ipswURL: ipswURL, diskSizeGB: diskSize)
|
||||
|
|
|
|||
Loading…
Reference in New Issue