File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
37const path = require ( 'path' )
48const spawn = require ( 'child_process' ) . spawn
59
610
7- var PATH = process . env . PATH . split ( ':' )
811var command = process . argv [ 1 ]
912var argv = process . argv . slice ( 2 )
1013
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
1116var index = PATH . indexOf ( path . dirname ( command ) )
1217if ( index >= 0 )
13- {
14- PATH = PATH . slice ( index + 1 )
15- process . env . PATH = PATH
16- }
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
1719
1820
1921spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
Original file line number Diff line number Diff line change 11{
22 "name" : " nodeos-cross-toolchain" ,
3- "version" : " 1.0.0-RC2.10 " ,
3+ "version" : " 1.0.0-RC2.11 " ,
44 "description" : " Cross-toolchain to build NodeOS based on Compressed Linux From Scratch Embedded" ,
55 "bin" : {
66 "addr2line" : " bin/addr2line" ,
You can’t perform that action at this time.
0 commit comments