Skip to content

Commit

Permalink
xccommand, disable color if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
BB9z committed Jan 14, 2024
1 parent 70b29a6 commit 70d7299
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/xccommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ xcCommand() {
logWarning "xcCommand: xcbeautify not found, ignore XC_BEAUTIFY."
else
outputCommand+=("xcbeautify")
# if [[ -n "${XC_LOG_FILE:-}" ]]; then
# outputCommand+=("--disable-colored-output")
# fi
if ! $_B9_LIB_LOG_COLOR_SUPPORTED_; then
outputCommand+=("--disable-colored-output")
elif [[ -n "${XC_LOG_FILE:-}" ]]; then
outputCommand+=("--disable-colored-output")
fi
if [[ $(checkVar "${GITHUB_ACTIONS:-}") == 0 ]]; then
outputCommand+=("--renderer" "github-actions")
fi
Expand Down

0 comments on commit 70d7299

Please sign in to comment.