Skip to content

Commit 9fc7084

Browse files
committed
BootstrapLaunchctlService: remove exit code 37 check
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.
1 parent 8c5f787 commit 9fc7084

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/action/macos/bootstrap_launchctl_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl BootstrapLaunchctlService {
4141
.await
4242
.map_err(|e| Self::error(ActionErrorKind::command(&command, e)))?;
4343
// We presume that success means it's found
44-
command_output.status.success() || command_output.status.code() == Some(37)
44+
command_output.status.success()
4545
};
4646

4747
let is_disabled = service_is_disabled(DARWIN_LAUNCHD_DOMAIN, &service)

0 commit comments

Comments
 (0)