diff --git a/DotLocal/Sudo.swift b/DotLocal/Sudo.swift index 60d03d6..67e0f81 100644 --- a/DotLocal/Sudo.swift +++ b/DotLocal/Sudo.swift @@ -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,