Browse files

Cooler prompt

  • Loading branch information...
1 parent 678d2e8 commit 08e59c1c8ef581b22566df9e4dd19851a5a08620 @isaacs isaacs committed Feb 7, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/utils/rm-rf.js
View
5 lib/utils/rm-rf.js
@@ -44,10 +44,9 @@ function rm (p, cb_) {
}
if (er.errno === constants.EACCES) {
// ask for privs
- var sudoEnv ={SUDO_PROMPT:"[npm rm "+p+"] Password:"
- ,SUDO_UID:process.getuid()}
+ var sudoEnv ={SUDO_PROMPT:"[npm rm "+p+"] Password:"}
for (var i in process.env) sudoEnv[i] = process.env[i]
- log.warn("Upgrade permissions to remove "+p, "rm")
+ log.warn("rm "+p, "privilege escalation")
return exec("sudo", ["rm", "-r", p]
,sudoEnv
,true

0 comments on commit 08e59c1

Please sign in to comment.