adamedx / winbox

Chef recipe for developer workstation for Windows
39 stars 18 forks source link

Fails with a space in the username #21

Open randomcamel opened 8 years ago

randomcamel commented 8 years ago

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