Permalink
Browse files

Use `tar -C` instead of `cd`

  • Loading branch information...
1 parent 54ce90b commit 4d83288592a7e0b17a123adfd3c96078db79b535 @mmalecki committed Mar 5, 2014
Showing with 1 addition and 3 deletions.
  1. +1 −3 scripts/install
View
@@ -1,5 +1,3 @@
#!/usr/bin/env bash
-dir=$(pwd)
-cd /usr/local && curl http://nodejs.org/dist/v0.10.23/node-v0.10.23-linux-x64.tar.gz | tar -xzvf- --strip-components=1
-cd "$dir"
+curl http://nodejs.org/dist/v0.10.23/node-v0.10.23-linux-x64.tar.gz | tar -xzvf- -C/usr/local --strip-components=1
npm install --production

0 comments on commit 4d83288

Please sign in to comment.