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

Enable colour only when writing to a tty #533

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

cqexbesd
Copy link
Contributor

@cqexbesd cqexbesd commented Jul 23, 2022

The escape codes can confuse other scripts and things in pipes.

For example I have a jail with ip4 set to inherit (see also #369) and when I try bastille start jail_name I get:

grep: brackets ([ ]) not balanced
Error: not set interface does not exist.

This patch fixes the first error message.

The escape codes can confuse other scripts and things in pipes
@cedwards cedwards merged commit c50e99b into BastilleBSD:master Jul 24, 2022
@cqexbesd cqexbesd deleted the colour branch July 24, 2022 09:49
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

Successfully merging this pull request may close these issues.

2 participants