Allow VNC for Recovery mode (#134)

This commit is contained in:
Fedor Korotkov 2022-06-20 13:08:31 -04:00 committed by GitHub
parent 1e90752ded
commit 7efef28250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -28,12 +28,7 @@ struct Run: AsyncParsableCommand {
var vnc: Bool = false
@MainActor
func run() async throws {
if recovery && vnc {
print("You can't run in recovery and use VNC!")
Foundation.exit(1)
}
func run() async throws {
let vmDir = try VMStorageLocal().open(name)
vm = try VM(vmDir: vmDir)