Browse files

Don't provide destructive instructions

If /usr/local doesn't exist you've just sudo chowned $PWD
  • Loading branch information...
1 parent 3c77c3f commit 3684faeaab3e461112689850e4ae7e4c34e52ae3 @mxcl mxcl committed Mar 14, 2010
Showing with 5 additions and 6 deletions.
  1. +5 −6
@@ -10,16 +10,15 @@ Run <> and afterwards, [install Xcode][xcode].
Umm… I thought I could install it anywhere?
-Indeed, you can. Please read our [complete installation instructions][install].
+Indeed, you can. Refer to our [complete installation instructions][install].
-Dude! Just give me a three-liner!
+Dude! Just give me a two-liner!
Alright then… as long as you know what you are doing:
- cd /usr/local
- sudo chown -R $USER .
- curl -Lsf | tar xz --strip 1
+ sudo chown -R $USER /usr/local
+ curl -Lsf | tar xvz -C/usr/local --strip 1
More Documentation

3 comments on commit 3684fae


roja replied Jun 14, 2010

I think the one-liner should well be changed to:

ruby -e "$(curl"


godfat replied Jun 14, 2010

If that's the case, I propose to use below instead because $() didn't work on my shell (fish shell)
curl | ruby -e 'eval($'


mkhl replied Jun 14, 2010

…which should be identical to:
curl | ruby

(Also, if you changed your shell to fish, you should be aware that is spells $() as ().)

Please sign in to comment.