File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ const checkDataTypeCompatibility = (params) => {
22
22
return allowedParamsDataTypes . includes ( typeof params )
23
23
}
24
24
25
+ const checkIfAbsolutePath = path => path . startsWith ( '/' ) || path . startsWith ( '~/' ) ;
26
+
25
27
26
28
module . exports = function openssl ( params , callback = ( ) => undefined ) {
27
29
const stdout = [ ] ;
@@ -66,7 +68,7 @@ module.exports = function openssl(params, callback = () => undefined) {
66
68
parameters [ i ] = dir + parameters [ i ] ;
67
69
}
68
70
69
- if ( checkCommandForIO ( parameters [ i ] ) && typeof parameters [ i + 1 ] !== 'object' ) {
71
+ if ( checkCommandForIO ( parameters [ i ] ) && typeof parameters [ i + 1 ] !== 'object' && ! checkIfAbsolutePath ( parameters [ i + 1 ] ) ) {
70
72
parameters [ i + 1 ] = dir + parameters [ i + 1 ] ;
71
73
}
72
74
}
You can’t perform that action at this time.
0 commit comments