]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/sync/commands.go
safcm: use Command struct instead of string to run commands
[safcm/safcm.git] / cmd / safcm-remote / sync / commands.go
index e3c48dd10e4df6d78ff0242439b462d16364ba14..84a318d79668b8e43118d9981e5d7736db3f766c 100644 (file)
@@ -40,7 +40,7 @@ func (s *Sync) syncCommands() error {
        // Regular commands afterwards so they can react on triggers if
        // necessary
        for _, x := range s.req.Commands {
-               err := s.syncCommand(x, "")
+               err := s.syncCommand(x.Cmd, "")
                if err != nil {
                        return err
                }