Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding the '-L' parameter to curl, so that it handles URL redirects.

  • Loading branch information...
commit 79eaf96656912d0f01882f57d26278f1a9cc85da 1 parent 2655332
@gtramontina gtramontina authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 nodeready.sh
View
5 nodeready.sh
@@ -76,7 +76,7 @@ elif has wget; then
else
hmm "did not find curl or wget, trying to install curl..."
if inst curl; then
- use_curl curl -C - -o
+ use_curl curl -L -C - -o
elif inst wget; then
use_curl wget --no-check-certificate -c -O
else
@@ -108,7 +108,7 @@ else
echo " rm -rf ~/.nvm"
fi
-source "$NVM_DIR/nvm.sh" >>$LOGFILE 2>&1
+source "$NVM_DIR/nvm.sh" >>$LOGFILE 2>&1
type nvm 2>&1 | grep "function" >>$LOGFILE 2>&1 || {
head -n1 "$NVM_DIR/nvm.sh" | grep "\<html" >>$LOGFILE 2>&1 && hmm "maybe github is down?"
die "failed to load nvm"
@@ -142,3 +142,4 @@ say "Thank you for using nodeready, still in testing. If everything seemed to wo
say "I'd appreciate a tweet @nodeready or an email to nodeready@agnoster.net"
say "letting me know what system you installed it on."
echo
+
Please sign in to comment.
Something went wrong with that request. Please try again.