diff options
Diffstat (limited to 'cmd/ship/env/set.go')
| -rw-r--r-- | cmd/ship/env/set.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ship/env/set.go b/cmd/ship/env/set.go index e11d2c9..d4292f3 100644 --- a/cmd/ship/env/set.go +++ b/cmd/ship/env/set.go | |||
| @@ -25,6 +25,9 @@ func init() { | |||
| 25 | 25 | ||
| 26 | func runSet(cmd *cobra.Command, args []string) error { | 26 | func runSet(cmd *cobra.Command, args []string) error { |
| 27 | name := args[0] | 27 | name := args[0] |
| 28 | if err := state.ValidateName(name); err != nil { | ||
| 29 | return err | ||
| 30 | } | ||
| 28 | envVars := args[1:] | 31 | envVars := args[1:] |
| 29 | 32 | ||
| 30 | st, err := state.Load() | 33 | st, err := state.Load() |
