Skip to content

Fails with a space in the username #21

@randomcamel

Description

@randomcamel

Specifically it's the home directory path: it works with C:\Users\cdoherty but not C:\Users\Chris Doherty.

PS C:\Users\Chris Doherty> . { iwr -UseBasicParsing https://raw.githubuserconten                           
t.com/adamedx/winbox/0.1.79/files/default/install.ps1 } |                                                  
>> iex;install-workstation                                                                                 
>>                                                                                                         
Configuring Windows tools for Chef Development...                                                          

[snip]

Configuring editor, terminal, PowerShell, etc....                                                          
Cloning https://github.com/adamedx/winbox to C:\Users\Chris Doherty\Documents\winbox ...                   
iex : A positional parameter cannot be found that accepts argument 'Doherty\Documents\winbox'.             
At line:68 char:5                                                                                          
+     iex "& cd $winbox"                                                                                   
+     ~~~~~~~~~~~~~~~~~~                                                                                   
    + CategoryInfo          : InvalidArgument: (:) [Invoke-Expression], ParameterBindingException          
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeExpressionCom
   mand                                                                                                    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions