Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change the way to check sudo

  • Loading branch information...
commit 5a730b054d28e5096fa052376881d6a9fc9a9597 1 parent 3a262fe
Hsiaoming Yang lepture authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scripts/preinstall.js
2  scripts/preinstall.js
View
@@ -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:');
Please sign in to comment.
Something went wrong with that request. Please try again.