Skip to content

Commit

Permalink
fix(upgrade): skip init ssx instance when upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
vimiix committed Jun 12, 2024
1 parent 993b348 commit a37b6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ssx/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ssx 100 pwd`,
Args: cobra.ArbitraryArgs, // accept arbitrary args for supporting quick login
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
lg.SetVerbose(logVerbose)
if !printVersion {
if !printVersion && cmd.Use != "upgrade" {
s, err := ssx.NewSSX(opt)
if err != nil {
return err
Expand Down

0 comments on commit a37b6cc

Please sign in to comment.