Skip to content

Commit

Permalink
Merge pull request #223 from DopplerHQ/set-two-secrets
Browse files Browse the repository at this point in the history
Fix `secrets set` failing when setting two secrets
  • Loading branch information
Piccirello authored Jun 9, 2021
2 parents 83fa74f + ad51ac1 commit eb6d8a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project_name: doppler
before:
hooks:
- go mod download
- go mod tidy
- ./scripts/completions.sh

builds:
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func setSecrets(cmd *cobra.Command, args []string) {
secrets := map[string]interface{}{}
var keys []string

if len(args) == 2 {
if len(args) == 2 && !strings.Contains(args[0], "=") {
// format: 'doppler secrets set KEY value'
key := args[0]
value := args[1]
Expand Down

0 comments on commit eb6d8a2

Please sign in to comment.