-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Search up the tree for the config file. #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bin/shipit
Outdated
CONFIG=./.shipit | ||
CONFIG_DIR=`pwd` | ||
CONFIG_NAME=.shipit | ||
CONFIG="$CONFIG_DIR$CONFIG_NAME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you’re overwriting this value anyway, could be empty by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's there so if the config file is never found, the existing error message still shows up as expected. I'm pretty sure that conditional wasn't working when I left this blank.
The value only gets overwritten if the config exists somewhere in the tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it will work like this: test -f "$CONFIG"
, with quotes.
@sapegin, I updated this PR as requested. |
Do I need to bump the version after you're happy with my PRs? Or do you need to do that? |
Thanks! I’ll update the version myself. |
Out in 0.2.0. |
Fixes #4.