selkhateeb / hardlink

a simple command-line utility that implements hardlinks on Mac OsX
486 stars 45 forks source link

Fix error when directory '/usr/local/bin/' does not exist. #12

Closed jasonlewismedia closed 9 years ago

jasonlewismedia commented 11 years ago

Great little utility. On a fresh system I ran into minor error when folder doesn't exist. This commit works around this issue by creating the folder(s) needed. If the folders exist already there should be no error.

ghost commented 10 years ago

did you solve it yet @jasonlewismedia ? I got the same problem.

selkhateeb commented 10 years ago

This fix creates the /usr/local/bin/ directory, however, is /usr/local/bin directory actually added to your path? I'd prefer leaving it as is without creating 'random' folders on the users system if they have different setup. To get around the issue just copy the file some where in your path.

Any thoughts?

jamespayne commented 10 years ago

Yeah I reckon thats fair. Maybe include this in the documentation.