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

Configuration parse error when using tilde in path #8

Closed
buzzert opened this issue Aug 20, 2018 · 2 comments
Closed

Configuration parse error when using tilde in path #8

buzzert opened this issue Aug 20, 2018 · 2 comments

Comments

@buzzert
Copy link

buzzert commented Aug 20, 2018

If I set my pages_directory = ~/Sync/um, I get the following error:

Unable to parse configuration file line 2: 'pages_directory = ~/Sync/um', skipping
Your configuration file is /Users/james/.um/umconfig
/Users/james/.um/pages

um should be able to expand tilde in paths. My home directory is in a different location on my mac vs my Linux box.

@duffn
Copy link

duffn commented Aug 22, 2018

That error comes from here because an entry in umconfig that starts with a tilde does not match this regex.

if line[/(\w+) = ([\w \/\(\)\.]+)/]

@sinclairtarget
Copy link
Owner

Fixed by fa15bbe. Available in the 3.1.0 release!

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

3 participants