From 3350993e35c05518e1767df5d882c95ac1cadcfa Mon Sep 17 00:00:00 2001 From: "T.J. L" Date: Fri, 14 Oct 2016 15:47:14 -0700 Subject: [PATCH] Fix trailing comma in parsed version numbers. --- npm2tgz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm2tgz b/npm2tgz index b7928e5..7bf4031 100755 --- a/npm2tgz +++ b/npm2tgz @@ -66,7 +66,7 @@ mkdir -p $PKG DESTDIR=$PKG npm install -g $PRGNAM -VERSION=$(grep -i "\"version\": \"\(.*\)\"" $PKG${NPMROOT}/$PRGNAM/package.json | sed 's|^[ ]*"version": "\(.*\)"|\1|g') +VERSION=$(grep -io "\"version\": \"\(.*\)\"" $PKG${NPMROOT}/$PRGNAM/package.json | sed 's|^[ ]*"version": "\(.*\)"|\1|g') DESCRIPTION=$(grep -i "\"description\": \"\(.*\)\"," $PKG${NPMROOT}/$PRGNAM/package.json | sed 's|^[ ]*"description": "\(.*\)",$|\1|g') HOMEPAGE=$(grep -i "\"homepage\": \"\(.*\)\"," $PKG${NPMROOT}/$PRGNAM/package.json | sed 's|^[ ]*"homepage": "\(.*\)",$|\1|g')