Fixed check for tasks.GetBrowserStatus()

pull/39/head
Paulo Truta 2024-12-05 08:07:48 +01:00
parent ee46b5b7d0
commit 623be87a84
1 changed files with 1 additions and 1 deletions

View File

@ -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\"}"