diff options
Diffstat (limited to 'cmd/ship/restart.go')
| -rw-r--r-- | cmd/ship/restart.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ship/restart.go b/cmd/ship/restart.go index 404624a..c902adb 100644 --- a/cmd/ship/restart.go +++ b/cmd/ship/restart.go | |||
| @@ -17,6 +17,9 @@ var restartCmd = &cobra.Command{ | |||
| 17 | 17 | ||
| 18 | func runRestart(cmd *cobra.Command, args []string) error { | 18 | func runRestart(cmd *cobra.Command, args []string) error { |
| 19 | name := args[0] | 19 | name := args[0] |
| 20 | if err := validateName(name); err != nil { | ||
| 21 | return err | ||
| 22 | } | ||
| 20 | 23 | ||
| 21 | st, err := state.Load() | 24 | st, err := state.Load() |
| 22 | if err != nil { | 25 | if err != nil { |
