mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: MacOS MDM based Deployment (#277)
* fix: MacOS MDM deployment script * fix: Handle shell alias for bash on macos * fix: Code review fixes * fix: Code review fixes * feat: Add support for global config file * feat: Add support for global config file * fix: Code review fixes * fix: Avoid blocking CLI for analytics flush
This commit is contained in:
@@ -160,7 +160,6 @@ func main() {
|
||||
fmt.Println(command.UsageString())
|
||||
})
|
||||
|
||||
defer analytics.Close()
|
||||
defer func() {
|
||||
if err := eventlog.Close(); err != nil {
|
||||
log.Warnf("failed to close eventlog: %v", err)
|
||||
@@ -178,6 +177,8 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
// Analytics are best-effort. Do not flush on exit because the PostHog
|
||||
// client can block the CLI while draining its queue.
|
||||
analytics.TrackCommandRun()
|
||||
analytics.TrackCI()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user