Skip to content

Commit

Permalink
BootstrapLaunchctlService: remove exit code 37 check
Browse files Browse the repository at this point in the history
This is returned with the message "Operation already in progress".
However, `print` doesn't actually start anything, so I highly doubt this
can ever trigger. This has existed since the beginning of this file, but
I believe it's a relic of some leftover testing with `launchctl load` /
`launchctl unload` / `launchctl bootstrap` / `launchctl bootout`, which
likely could return this.
  • Loading branch information
cole-h committed Sep 6, 2024
1 parent 16de2de commit 0afa743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action/macos/bootstrap_launchctl_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl BootstrapLaunchctlService {
.await
.map_err(|e| Self::error(ActionErrorKind::command(&command, e)))?;
// We presume that success means it's found
command_output.status.success() || command_output.status.code() == Some(37)
command_output.status.success()
};

let is_disabled = service_is_disabled(DARWIN_LAUNCHD_DOMAIN, &service_name)
Expand Down

0 comments on commit 0afa743

Please sign in to comment.