Переглянути джерело

Tools: Make clear the used platform in the PowerShell export script

Roland Dobai 4 роки тому
батько
коміт
ccabacec32
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      export.ps1

+ 2 - 1
export.ps1

@@ -24,7 +24,8 @@ foreach ($line  in $envars_raw) {
 }
 }
 
 
 if ($IsWindows -eq $null) {
 if ($IsWindows -eq $null) {
-    # $IsWindows was added in PowerShell Core 6 and PowerShell 7.
+    # $IsWindows was added in PowerShell Core 6 and PowerShell 7 together with multi-platform support. # I.E. if this
+    # internal variable is not set then PowerShell 5 is used and # the platform cannot be # anything else than Windows.
     $IsWindows = $true
     $IsWindows = $true
 }
 }