Skip to content

Commit 5089368

Browse files
authored
Update publish_packages.js
Changed scope of updatePermissions() Signed-off-by: Seth-Banker <[email protected]>
1 parent 724283b commit 5089368

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,16 @@ function publish( pkg, clbk ) {
12051205
}, onRepoCreation );
12061206
}
12071207

1208+
/**
1209+
* Adds executable permission to `bin/cli` files.
1210+
*
1211+
* @private
1212+
* @param {Object} git - `git` class instance
1213+
*/
1214+
function updatePermissions( git ) {
1215+
shell( 'find '+git.cwd+' -regex \'.*/bin/cli\' -print0 | xargs -r -0 chmod +x' );
1216+
}
1217+
12081218
/**
12091219
* Publishes the package to npm.
12101220
*
@@ -1295,16 +1305,6 @@ function publish( pkg, clbk ) {
12951305
invokeCallback();
12961306
}
12971307

1298-
/**
1299-
* Adds executable permission to `bin/cli` files.
1300-
*
1301-
* @private
1302-
* @param {Object} git - `git` class instance
1303-
*/
1304-
function updatePermissions( git ) {
1305-
shell( 'find '+git.cwd+' -regex \'.*/bin/cli\' -print0 | xargs -r -0 chmod +x' );
1306-
}
1307-
13081308
/**
13091309
* Replacer function for inserting an install section before a usage section.
13101310
*

0 commit comments

Comments
 (0)