Merge branch 'fix/export_syntax' into 'master'

fix(export): Operator syntax fix for all versions of PowerShell

See merge request espressif/esp-idf!31786
This commit is contained in:
Jakub Kocka 2024-06-28 15:51:55 +08:00
commit d41c9d948d

View File

@ -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")