diff --git a/alert_darwin.go b/alert_darwin.go index 1f19425..328785e 100644 --- a/alert_darwin.go +++ b/alert_darwin.go @@ -15,7 +15,7 @@ func Alert(title, message, appIcon string) error { return err } - script := fmt.Sprintf(`display notification "%s" with title "%s" sound name "default"`, message, title) + script := fmt.Sprintf("display notification %q with title %q sound name \"default\"", message, title) cmd := exec.Command(osa, "-e", script) return cmd.Run() }