diff --git a/createcmd.go b/createcmd.go index d050dfc..1116d8b 100644 --- a/createcmd.go +++ b/createcmd.go @@ -134,6 +134,9 @@ func validate() error { } // Exec check + if len(strings.TrimSpace(createOpts.Exec)) == 0 { + return fmt.Errorf("Need an executable to create a service for") + } stat, err := os.Stat(createOpts.Exec) if os.IsNotExist(err) { return fmt.Errorf("Could not find executable: %s is not a file", createOpts.Exec)