From 2a00ad4256b4b8ed320fb2264d46afb374a2f04a Mon Sep 17 00:00:00 2001 From: isaacs Date: Sun, 20 Feb 2011 12:22:13 -0800 Subject: Remove sudo from the install.sh.Let users do this if they need to. --- scripts/install.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/scripts/install.sh b/scripts/install.sh index b255d8d76..2f60bc4e5 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -68,13 +68,6 @@ if [ $ret -ne 0 ]; then exit $ret fi -me=`whoami` -sudo="" -if ! [ "x$me" = "xroot" ]; then - echo "Not running as root. Will attempt to use sudo." >&2 - sudo="sudo" -fi - cd "$TMP" \ && curl -s -L "$url" | $tar -xzf - \ && cd * \ @@ -92,13 +85,9 @@ cd "$TMP" \ exit $ret fi) \ && (if ! [ "$make" = "NOMAKE" ]; then - SUDO_PROMPT='[npm install] Password:' $sudo $make uninstall dev || \ - ( echo "sudo failed, attempting with unsafe-perm" >&2 - npm_config_unsafe_perm=true $make install dev) + $make uninstall dev else - SUDO_PROMPT='[npm install] Password:' $sudo $node cli.js install . || \ - ( echo "sudo failed, attempting with unsafe-perm" >&2 - npm_config_unsafe_perm=true $node cli.js install .) + $node cli.js install . fi) \ && cd "$BACK" \ && rm -rf "$TMP" \ -- cgit v1.2.3