From 1d8bfafde528d2342f5ecd46f4f5f4e3e02c2e5f Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Mon, 18 Dec 2023 22:05:48 +0400 Subject: [PATCH] tart create --from-ipsw: expand tilde (~) in path (#688) --- Sources/tart/Commands/Create.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Create.swift b/Sources/tart/Commands/Create.swift index 69930e6..a85de3e 100644 --- a/Sources/tart/Commands/Create.swift +++ b/Sources/tart/Commands/Create.swift @@ -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)