From 623be87a84f194d804205091a5c38dd9bd35ba22 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Thu, 5 Dec 2024 08:07:48 +0100 Subject: [PATCH] Fixed check for tasks.GetBrowserStatus() --- internal/tasks/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tasks/tasks.go b/internal/tasks/tasks.go index b8e4023..328d181 100644 --- a/internal/tasks/tasks.go +++ b/internal/tasks/tasks.go @@ -1147,7 +1147,7 @@ func taskGetBrowserDevStatus() string { "sh", []string{"-c", "systemctl --quiet is-active code-server@root && echo 'active' || echo 'inactive'"}, ) - if browserDevStatus != "" { + if browserDevStatus == "active" { fmt.Println("Browser Dev Environment is running") utils.WriteOption("BROWSERDEV_STATUS", "running") return "{\"status\": \"running\"}"