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

do_link fails when local_directory ends with slash #3

Open
czgarrett opened this issue Jul 9, 2010 · 0 comments
Open

do_link fails when local_directory ends with slash #3

czgarrett opened this issue Jul 9, 2010 · 0 comments

Comments

@czgarrett
Copy link

I'm on Mac OS X, so perhaps it's related to that.

I had an SVN external that ended with a slash, e.g. /public/service_support/

When local_directory is assigned, the directory is cleaned up with sed to remove the first slash, but not the trailing slash, so it produces:

public/service_support/

This then fails in do_link because ln doesn't like the trailing slash.

To fix, I piped through a second sed command, like so:

local_directory="$(echo ${words[0]} | sed 's,^/,,' | sed 's,/$,,')"

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

No branches or pull requests

1 participant