This repository was archived by the owner on Dec 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ var avn = function() {
8787 * complete and indicates if any action took place.
8888 */
8989var plugins = function ( ) {
90- return installedPlugins ( ) . then ( function ( plugins ) {
91- return Promise . all ( plugins . map ( function ( plugin ) {
90+ return installedPlugins ( ) . then ( function ( _plugins ) {
91+ return Promise . all ( _plugins . map ( function ( plugin ) {
9292 var src = plugin . path + '/' ;
9393 var dst = path . join ( process . env . HOME ,
9494 path . join ( '.avn/plugins' , plugin . moduleName ) ) ;
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ var path = require('path');
1515var modules = function ( ) {
1616 return Promise . resolve ( )
1717 . then ( function ( ) { return npm . loadAsync ( ) ; } )
18- . then ( function ( npm ) {
19- npm . config . set ( 'spin' , false ) ;
20- npm . config . set ( 'global' , true ) ;
21- npm . config . set ( 'depth' , 0 ) ;
22- return Promise . promisify ( npm . commands . list ) ( [ ] , true ) ;
18+ . then ( function ( _npm ) {
19+ _npm . config . set ( 'spin' , false ) ;
20+ _npm . config . set ( 'global' , true ) ;
21+ _npm . config . set ( 'depth' , 0 ) ;
22+ return Promise . promisify ( _npm . commands . list ) ( [ ] , true ) ;
2323 } )
2424 . then ( function ( data ) { return data ; } ) ;
2525} ;
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ var isNoEntry = require('../util/codes').isNoEntry;
1616 * @return {String } The string to be included in the init script.
1717 */
1818var script = function ( ) {
19- var script = '$HOME/.avn/bin/avn.sh' ;
19+ var _script = '$HOME/.avn/bin/avn.sh' ;
2020 return util . format ( '[[ -s "%s" ]] && source "%s" # load avn\n' ,
21- script , script ) ;
21+ _script , _script ) ;
2222} ;
2323
2424/**
You can’t perform that action at this time.
0 commit comments