Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ps1 script with PowerShell 6.1.0 #17

Open
bovirus opened this issue Sep 20, 2018 · 1 comment
Open

Error in ps1 script with PowerShell 6.1.0 #17

bovirus opened this issue Sep 20, 2018 · 1 comment

Comments

@bovirus
Copy link

bovirus commented Sep 20, 2018

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

  •         if ($subdir - <<<< notin $QtSkipDirectories) {
    
    • CategoryInfo : ParserError: (:) [], ParseException
    • FullyQualifiedErrorId : ExpectedValueExpression

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants