Skip to content

Commit

Permalink
correct uid check
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Dec 8, 2019
1 parent 63193a4 commit 63a7048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/setupmymac
Expand Up @@ -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

Expand Down

0 comments on commit 63a7048

Please sign in to comment.