Skip to content

Commit 48bec86

Browse files
authored
Get the rclnodejs package name (#1018)
This patch leverages awk to grab the packaging name of rclnodejs generated by npm pack command. Fix: #1017
1 parent 5d6c398 commit 48bec86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/npm-pack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cp -f scripts/npmjs-readme.md $MODULEDIR/README.md
2727

2828
pushd . > /dev/null
2929
cd $WORKDIR
30-
FILENAME=`npm pack $RAWMODULEDIR`
30+
FILENAME=`npm pack $RAWMODULEDIR | awk '{for(i=1; i<=NF; i++) if ($i ~ /rclnodejs-.*\.tgz/) print $i}'`
3131
TARFILENAME="$WORKDIR/$FILENAME"
3232

3333
popd > /dev/null

0 commit comments

Comments
 (0)