This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 63a70483b80877717528275ff5c5be821c96656c
Author: Sam Ruby <[email protected]>
AuthorDate: Sun Dec 8 08:16:02 2019 -0500

    correct uid check
---
 config/setupmymac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/setupmymac b/config/setupmymac
index 8c82e46..224c917 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -198,7 +198,7 @@ unless Dir.exist? '/usr/local/n'
   sudo { run 'mkdir', '/usr/local/n' }
 end
 
-unless File.stat('/usr/local/n').uid == uid
+unless File.stat('/usr/local/n').uid == sudo_user.uid
   sudo {run 'chown', '-R', "#{sudo_user.uid}:#{sudo_user.gid}", '/usr/local/n'}
 end
 

Reply via email to