Skip to content

Commit

Permalink
fix(desktop): do not block specifying options if command is used from…
Browse files Browse the repository at this point in the history
… desktop. The options will be filled in later
  • Loading branch information
pascalbreuninger committed Jan 7, 2025
1 parent 36ad3f6 commit 450a83a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/provider/set_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package provider
import (
"context"
"fmt"
"os"

"github.com/loft-sh/devpod/cmd/flags"
"github.com/loft-sh/devpod/pkg/config"
Expand Down Expand Up @@ -63,7 +64,7 @@ func (cmd *SetOptionsCmd) Run(ctx context.Context, args []string, log log.Logger
}
log.Debugf("providerName=%+v", providerName)

if len(cmd.Options) == 0 {
if os.Getenv("DEVPOD_UI") == "" && len(cmd.Options) == 0 {
return fmt.Errorf("please specify option")
}
log.Debugf("Options=%+v", cmd.Options)
Expand Down

0 comments on commit 450a83a

Please sign in to comment.