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

This commit is contained in:
Nikolay Edigaryev 2023-12-18 22:05:48 +04:00 committed by GitHub
parent 537f0ae5db
commit 1d8bfafde5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)