Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ install:
- bundle install

script:
- bundle exec jekyll build
- bundle exec jekyll build 2> error.log
- cat >&2 error.log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under what conditions will this line exit with a non-zero status?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess what I am getting at is I don't understand what the >&2 is for.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 2> pipes stderr to error.log

The >&2 pipes stdout to stderr

I guess what I am getting at is I don't understand what the >&2 is for.

It makes the font of the error message "Yellow" in Travis?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay >&2 is starting to make more sense.

But why cat >&2 error.log instead of cat error.log >&2.

Thanks for your time. I know your job is not to spend all day educating me. ;-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, no difference. Let me know if >&2 at the end is clearer.

Thank you for the careful review!

- ( ! grep -qie Error error.log )