Merge pull request #1 from TJ09/master

Fix trailing comma in parsed version numbers. (feat. TJ09)
This commit is contained in:
gwenhael 2016-10-15 08:24:11 +02:00 committed by GitHub
commit 537e3a546e

View file

@ -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')