Skip to content

Commit 9982a94

Browse files
committed
Ensure duplicates are stripped in final LICENSE file
1 parent 4f3ea36 commit 9982a94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ function publish( pkg, clbk ) {
498498
' # Remove duplicate licenses, i.e., multiline strings:',
499499
' awk -v RS= \'!x[$0]++{print; print ""}\' LICENSE.out > LICENSE.tmp',
500500
'',
501-
' # Move LICENSE.out to LICENSE:',
502-
' mv LICENSE.out '+dist+'/LICENSE',
501+
' # Move LICENSE.tmp to LICENSE:',
502+
' mv LICENSE.tmp '+dist+'/LICENSE',
503503
'',
504504
' # Remove temporary file:',
505-
' rm LICENSE.tmp',
505+
' rm LICENSE.out',
506506
'fi'
507507
].join( '\n' );
508508
shell( command );

0 commit comments

Comments
 (0)