Onion icon indicating copy to clipboard operation
Onion copied to clipboard

error for "self-update" command in a folder with spaces

Open matteosister opened this issue 13 years ago • 1 comments

I keep all my php executables in an Ubuntu One folder (for sharing across my computers), and the Ubuntu One folder has a space in it. I found that the self-update command fails due to a problem with curl....for example, in my environment the command become:

$ curl -# -L https://raw.github.com/c9s/Onion/master/onion > /home/matteo/Ubuntu One/dotfiles/bin/onion

so curl complains:

$ curl: (6) Couldn't resolve host 'One'

I found a quick solution that simply escape the spaces in the script path. You can find it here

If you want a PR it's ready...

matteosister avatar Aug 27 '12 19:08 matteosister

Hi! Thanks!

Can you send me a pull request ?

c9s avatar Aug 28 '12 03:08 c9s