diff options
author | isaacs <i@izs.me> | 2011-02-20 23:22:13 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-20 23:22:13 +0300 |
commit | 2a00ad4256b4b8ed320fb2264d46afb374a2f04a (patch) | |
tree | a0d57adb8bbe565f7fdcab74b714a0446f34a01c /scripts | |
parent | 39458197faad2f10098d7428369bbeb26a05cfdd (diff) |
Remove sudo from the install.sh.Let users do this if they need to.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 15 |
1 files changed, 2 insertions, 13 deletions
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" \ |