Skip to content

Commit 557d8f1

Browse files
committed
Fix if-check
1 parent 692f612 commit 557d8f1

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
@@ -494,7 +494,7 @@ function publish( pkg, clbk ) {
494494
'sed -i \'s/^\\*//\' LICENSE.tmp',
495495
'',
496496
'# Check whether LICENSE.tmp is empty:',
497-
'if [ ! -s LICENSE.tmp ]; then',
497+
'if [ -s LICENSE.tmp ]; then',
498498
'',
499499
' # Attach attribution notice to LICENSE file:',
500500
' cat '+dist+'/LICENSE '+join( __dirname, 'templates', 'license_attribution.txt' )+' LICENSE.tmp > LICENSE.out',
@@ -517,8 +517,8 @@ function publish( pkg, clbk ) {
517517
' sed -i \'s/Copyright (c) 2015: Dahua Lin./\\* StatsFuns.jl <https:\\/\\/raw.githubusercontent.com\\/JuliaStats\\/StatsFuns.jl\\/\ne66dd973650c375bc1739c820e5b96bb5bd000a8\\/LICENSE.md>\n\nCopyright (c) 2015: Dahua Lin./\' LICENSE.out',
518518
' sed -i \'s/Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura/\\* MT19937 <http:\\/\\/www.math.sci.hiroshima-u.ac.jp\\/~m-mat\\/MT\\/MT2002\\/CODES\\/mt19937ar.c>\n\nCopyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura/\' LICENSE.out',
519519
'',
520-
'# Move LICENSE.out to LICENSE:',
521-
'mv LICENSE.out '+dist+'LICENSE',
520+
' # Move LICENSE.out to LICENSE:',
521+
' mv LICENSE.out '+dist+'/LICENSE',
522522
'',
523523
' # Remove temporary file:',
524524
' rm LICENSE.tmp LICENSE.out',

0 commit comments

Comments
 (0)