aws / aws-elastic-beanstalk-cli-setup

Simplified EB CLI installation mechanism.
Apache License 2.0
515 stars 226 forks source link

On windows eb cannot be placed in a directory with spaces #98

Open air2 opened 3 years ago

air2 commented 3 years ago

1. Please specify the following:

2. Description After installation a eb.ps1 file ends up in C:\Users\ because on windows usernames can contain spaces and some long gone sysadmin thought that was actually a good idea I ended up with a space in my username at my workplace. Anyway by modifying eb.ps1 it now works:

c:\Users\A9DA8~1.BRU\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\A9DA8~1.BRU\.ebcli-virtual-env\Scripts\eb $args
deactivate

As you can see I used the old dos shortname instead of the generated long name which is causing problems:

c:\Users\My Name\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\My Name\.ebcli-virtual-env\Scripts\eb $args
deactivate
GrandNewbien commented 3 years ago

For anyone learning about DOS short names, it'll be the first 6 letters followed by ~1 assuming there's no name collisions.

For Example: If your user is named "Canada Computers", you can modify the eb.ps1 file with:

C:\Users\CANADA\~1\.ebcli-virtual-env\Scripts\activate.ps1 C:\Users\CANADA\~1\.ebcli-virtual-env\Scripts\eb $args deactivate

bitcreations commented 2 years ago

Just got into same issue you just have to do this to solve this : you can modify the eb.ps1 file with:

just add " quote to the My Name like "My Name"

c:\Users\"My Name"\.ebcli-virtual-env\Scripts\activate.ps1
c:\Users\"My Name"\.ebcli-virtual-env\Scripts\eb $args
deactivate