From 23989c376ce9d3a2be99763a3f19c7bac17f6512 Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong <8080853+suphon-t@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:22:11 +0700 Subject: [PATCH] fix: wrong status returned --- DotLocal/Sudo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,