-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-#2329 Fix clang_tidy_check.sh error output
- Loading branch information
1 parent
d6e62bc
commit 74caf49
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2022 - 2023 by Apex.AI Inc. All rights reserved. | ||
# Copyright (c) 2023 by Mathias Kraus <[email protected]>. All rights reserved. | ||
# Copyright (c) 2023 - 2024 by ekxide IO GmbH. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -168,8 +168,9 @@ function scan() { | |
|
||
if test -f "$FILE"; then | ||
SECONDS_START=${SECONDS} | ||
$(${CLANG_TIDY_CMD} ${WARN_MODE_PARAM} --quiet -p build ${FILE} ; \ | ||
echo echo -e "${COLOR_YELLOW} $((${SECONDS}-${SECONDS_START}))s${COLOR_OFF} to scan '${FILE}'") & | ||
$(${CLANG_TIDY_CMD} ${WARN_MODE_PARAM} --quiet -p build ${FILE} ${EXTRA_ARG} >&2 \ | ||
|| exit $? \ | ||
&& echo echo -e "${COLOR_YELLOW} $((${SECONDS}-${SECONDS_START}))s${COLOR_OFF} to scan '${FILE}'") & | ||
CURRENT_CONCURRENT_EXECUTIONS=$((CURRENT_CONCURRENT_EXECUTIONS + 1)) | ||
else | ||
echo -e "${COLOR_RED}File does not exist! Aborting!${COLOR_OFF}" | ||
|