howtowhale / dvm

Docker Version Manager
https://howtowhale.github.io/dvm/
Apache License 2.0
522 stars 50 forks source link

Handle whitespace in DVM_DIR on nix #123

Open carolynvs opened 8 years ago

carolynvs commented 8 years ago

Reported by kingsbridge from https://community.getcarina.com/t/windows-powershell-and-cmd-scripts-dont-handle-whitespace-in-the-install-script-paths/237/5

Funnily enough i just tried an install on a Linux environment with whitespace in the path, 
with a similar result.... assume install.sh doesn't encapsulate paths too!
The below path is /home/Whitespace Here/ - recognises 'Whitespace' in the path 
and 'Here' as the host:

$ curl -sL https://download.getcarina.com/dvm/latest/install.sh | sh
Downloading dvm.sh...
######################################################################## 100.0%
Warning: Failed to create the file /home/Whitespace: Permission denied

curl: (23) Failed writing body (0 != 1386)
curl: (6) Couldn't resolve host 'Here'**