uid / gitstream-exercises

Exercises used by GitStream
MIT License
1 stars 2 forks source link

go.sh should quote variables #1

Closed yasyf closed 9 years ago

yasyf commented 9 years ago

All the go.sh files (like this one) fail to copy the hooks over when the repo directory (or some parent) contains a space (http://cl.ly/XwOE).

cp $gitroot/.hooks/* $gitroot/.git/hooks

should be

cp "$gitroot"/.hooks/* "$gitroot"/.git/hooks
nhynes commented 9 years ago

Thanks! This has been fixed in production and I'll add this in once I'm done revamping exercise creation.

nhynes commented 9 years ago

Fixed by e2909af. Thanks again!