Skip to content

Instantly share code, notes, and snippets.

@Jxck
Created April 16, 2011 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jxck/923440 to your computer and use it in GitHub Desktop.
Save Jxck/923440 to your computer and use it in GitHub Desktop.
From 87a1eb5c64fb14cc3d548b67337ae4ba37635233 Mon Sep 17 00:00:00 2001
From: Jxck <block.rxckin.beats@gmail.com>
Date: Sun, 17 Apr 2011 05:05:07 +0900
Subject: [PATCH] mod curl progress-bar option
---
nvm.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nvm.sh b/nvm.sh
index 6f107ec..1e10915 100644
--- a/nvm.sh
+++ b/nvm.sh
@@ -108,7 +108,7 @@ nvm()
if (
mkdir -p "$NVM_DIR/src" && \
cd "$NVM_DIR/src" && \
- curl -C - -# "http://nodejs.org/dist/node-$VERSION.tar.gz" -o "node-$VERSION.tar.gz" && \
+ curl -C - --progress-bar "http://nodejs.org/dist/node-$VERSION.tar.gz" -o "node-$VERSION.tar.gz" && \
tar -xzf "node-$VERSION.tar.gz" && \
cd "node-$VERSION" && \
./configure --prefix="$NVM_DIR/$VERSION" && \
--
1.7.4.4
Copy link

ghost commented May 4, 2011

This patch as-is will break the wget fallback when curl isn't installed. I'm working on fixing that. Pull request forthcoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment