Skip to content

Commit

Permalink
fix: use run() instead of start()
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Feb 10, 2025
1 parent ae8e303 commit 9f2e22b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ func Update(cmd *cobra.Command, args []string) {
if applySystem && mainSystemDriverConfig.Enabled {
slog.Info("Applying System Update")
cmd := exec.Command("/usr/bin/systemctl", "reboot")
cmd.Start()
err := cmd.Run()
if err != nil {
slog.Error("Failed rebooting machine for updates", slog.Any("error", err))
}
}
}

0 comments on commit 9f2e22b

Please sign in to comment.