From 7efef2825041b8e1553595a9ae015f59afc71092 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Mon, 20 Jun 2022 13:08:31 -0400 Subject: [PATCH] Allow VNC for Recovery mode (#134) --- Sources/tart/Commands/Run.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index 0b4639e..64c533e 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -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)