tart create --from-ipsw: expand tilde (~) in path (#688)

This commit is contained in:
Nikolay Edigaryev
2023-12-18 13:05:48 -05:00
committed by GitHub
parent 537f0ae5db
commit 1d8bfafde5
+1 -1
View File
@@ -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)