lelegard / qtlinguist-installers

Standalone binary installers for Qt Linguist
101 stars 12 forks source link

Error in ps1 script with PowerShell 6.1.0 #17

Open bovirus opened 6 years ago

bovirus commented 6 years ago

Using aletst evrsion of PowerShell 6.1.0 running build-windows.ps1 I got an error

In D:\Download\qtlinguist-installers-master\windows\build-windows.ps1:244 car:26

the line with error is

        if ($subdir **_-notin_** $QtSkipDirectories) {

PS: I didn't find the info that to run the script it's need befroe to run this command in PowerShell

run command to elevate privilege

Is it right?

lelegard commented 6 years ago

Hi @bovirus

As far as I understand, PowerShell 6.x is the open source and multi platform version which is available from GitHub. Am I right? On a "standard" Windows 10 with all updates, we have PowerShell 5.1.

I have no idea of what is in PowerShell 6.1.0. Maybe they made incompatible changes. But for such obvious and common things as the -notin operator, that would be strange.

Anyway, not having installed PowerShell 6.1.0, I cannot answer the question.

And, no, of course, the build script does not require elevated privileges.