qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.74k stars 148 forks source link

Fixed ENVNAME so that sub supports commands with dashes in the name #11

Closed z0mbix closed 11 years ago

z0mbix commented 11 years ago

I wanted to use a sub called "something-admin" but when bin/something-admin tries to run:

export _SOMETHING-ADMIN_ROOT="$(abs_dirname "$libexec_path")"

It fails as it contains a dash, so these should be converted to underscores.

Cheers z0mbix