Skip to content

Commit

Permalink
Change the way to check sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Aug 14, 2013
1 parent 3a262fe commit 5a730b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/preinstall.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

if (process.getuid && process.getuid() === 0) {
if (process.env.SUDO_USER) {
console.log('');
console.log('NO SUDO PLEASE!!!')
console.log('Maybe you need run:');
Expand Down

0 comments on commit 5a730b0

Please sign in to comment.