Skip to content

Commit

Permalink
Merge pull request #1692 from Infisical/daniel/cli-fix
Browse files Browse the repository at this point in the history
Hotfix: CLI run command null pointer reference crash
  • Loading branch information
maidul98 authored Apr 16, 2024
2 parents dadea75 + de92ba1 commit d23b39a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/packages/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ var runCmd = &cobra.Command{
posthog.NewProperties().
Set("secretsCount", len(secrets)).
Set("environment", environmentName).
Set("isUsingServiceToken", token.Type == util.SERVICE_TOKEN_IDENTIFIER).
Set("isUsingUniversalAuthToken", token.Type == util.UNIVERSAL_AUTH_TOKEN_IDENTIFIER).
Set("isUsingServiceToken", token != nil && token.Type == util.SERVICE_TOKEN_IDENTIFIER).
Set("isUsingUniversalAuthToken", token != nil && token.Type == util.UNIVERSAL_AUTH_TOKEN_IDENTIFIER).
Set("single-command", strings.Join(args, " ")).
Set("multi-command", cmd.Flag("command").Value.String()).
Set("version", util.CLI_VERSION))
Expand Down

0 comments on commit d23b39a

Please sign in to comment.