File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const pump = require('pump')
33const fs = require ( 'fs' )
44const path = require ( 'path' )
55
6- const win32 = ( global . Bare ?. platform || process . platform ) === 'win32'
6+ const win32 = ( global . Bare ? global . Bare . platform : process . platform ) === 'win32'
77
88exports . pack = function pack ( cwd , opts ) {
99 if ( ! cwd ) cwd = '.'
@@ -109,11 +109,11 @@ function head (list) {
109109}
110110
111111function processGetuid ( ) {
112- return process . getuid ? process . getuid ( ) : - 1
112+ return ( ! global . Bare && process . getuid ) ? process . getuid ( ) : - 1
113113}
114114
115115function processUmask ( ) {
116- return process . umask ? process . umask ( ) : 0
116+ return ( ! global . Bare && process . umask ) ? process . umask ( ) : 0
117117}
118118
119119exports . extract = function extract ( cwd , opts ) {
You can’t perform that action at this time.
0 commit comments