Skip to content

Commit

Permalink
process.getuid doesn't always exist (fixes #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Jan 24, 2014
1 parent 9a91551 commit 616ec76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

if (process.getuid() === 0) {
if (process.getuid && process.getuid() === 0) {
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.")
}

Expand Down

0 comments on commit 616ec76

Please sign in to comment.