Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script fails if parent directory has a space #55

Open
lobit0 opened this issue Nov 7, 2015 · 0 comments
Open

script fails if parent directory has a space #55

lobit0 opened this issue Nov 7, 2015 · 0 comments

Comments

@lobit0
Copy link

lobit0 commented Nov 7, 2015

I'm using Ubuntu 14.04.3 LTS (Edubuntu).

I cloned the repo into ~/Documents/Foo BAR/asdf/Install-OpenCV and ran the opencv_latest.sh script found on the Ubuntu directory.

It failed because it couldn't find some .hpp file (can't remember the name now and I'm very busy, sorry).

I found the script had put it into ~/Documents/Foo\ BAR/asdf/Install-OpenCV/somewhere/file.hpp

Note the Foo\ BAR instead of Foo BAR. There's obviously an escaping problem somewhere.

Then I copied the contents from Foo\ BAR into Foo BAR and ran the script again.

It failed because mkdir couldn't create the build directory (it already existed).

So my workaround was to clone the repo again into /tmp/Install-OpenCV, instead.

Would including an if statement before the mkdir one to check the directory doesn't already exist also make sense? I'm not sure.

Thanks for your efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant