File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,14 @@ async function main() {
27
27
}
28
28
29
29
if ( parsingFlags && arg === "-e" && i + 1 < args . length ) {
30
- // Parse environment variables passed with -e flag
31
- // Format: -e KEY=VALUE
32
- // Example: -e MY_VAR=my_value
33
- // Handles env vars where VALUE can contain "=" signs (e.g., var1=sample=value)
34
30
const envVar = args [ ++ i ] ;
35
31
const equalsIndex = envVar . indexOf ( "=" ) ;
36
32
37
33
if ( equalsIndex !== - 1 ) {
38
- // Split only at the first equals sign
39
34
const key = envVar . substring ( 0 , equalsIndex ) ;
40
35
const value = envVar . substring ( equalsIndex + 1 ) ;
41
36
envVars [ key ] = value ;
42
37
} else {
43
- // No equals sign found, use the whole string as key with empty value
44
38
envVars [ envVar ] = "" ;
45
39
}
46
40
} else if ( ! command ) {
You can’t perform that action at this time.
0 commit comments