mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(export): Operator syntax fix for all versions of PowerShell
This commit is contained in:
parent
f09f92eb54
commit
5b0cf8824a
@ -38,7 +38,7 @@ foreach ($pair in $envars_array) {
|
||||
$var_val = $pair[1].Trim() # trim spaces on the ends of the val
|
||||
if ($var_name -eq "PATH") {
|
||||
# trim "%PATH%" or "`$PATH"
|
||||
if ($IsWindows || $Windows) {
|
||||
if ($IsWindows -or $Windows) {
|
||||
$var_val = $var_val.Trim($S + "%PATH%")
|
||||
} else {
|
||||
$var_val = $var_val.Trim($S + "`$PATH")
|
||||
|
Loading…
Reference in New Issue
Block a user