Skip to content

Commit

Permalink
fix: wrong status returned
Browse files Browse the repository at this point in the history
  • Loading branch information
suphon-t committed Jan 10, 2024
1 parent 6c4b83a commit 23989c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotLocal/Sudo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct Sudo {

let (osStatus, stdout) = await executeWithPrivileges(authorization: authRef, path: path, arguments: arguments)

return (status == errAuthorizationSuccess, stdout)
return (osStatus == errAuthorizationSuccess, stdout)
}

private static func executeWithPrivileges(authorization: AuthorizationRef,
Expand Down

0 comments on commit 23989c3

Please sign in to comment.